Compare commits
2 commits
f7374a63b8
...
76d9e0a3bb
Author | SHA1 | Date | |
---|---|---|---|
76d9e0a3bb | |||
fcae142b66 |
3 changed files with 33 additions and 14 deletions
12
.editorconfig
Normal file
12
.editorconfig
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
||||||
|
|
||||||
|
[Makefile]
|
||||||
|
indent_style = tab
|
||||||
|
indent_size = 4
|
|
@ -18,12 +18,12 @@ erase()
|
||||||
dir="${1}"
|
dir="${1}"
|
||||||
printf "%s " "${dir}"
|
printf "%s " "${dir}"
|
||||||
find "${dir}" \
|
find "${dir}" \
|
||||||
-maxdepth 1 \
|
-maxdepth 1 \
|
||||||
\! -name "." \
|
\! -name "." \
|
||||||
\! -name ".." \
|
\! -name ".." \
|
||||||
\! -name "ports" \
|
\! -name "ports" \
|
||||||
-exec printf . \; \
|
-exec printf . \; \
|
||||||
-exec rm -rf "{}" \;
|
-exec rm -rf "{}" \;
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,18 +42,21 @@ printf "1-4: "
|
||||||
while true; do
|
while true; do
|
||||||
read -r r
|
read -r r
|
||||||
if [ "${r}" = "1" ]; then
|
if [ "${r}" = "1" ]; then
|
||||||
erase "${repodir}"
|
erase "${repodir}"
|
||||||
|
printok "remove complete"
|
||||||
elif [ "${r}" = "2" ]; then
|
elif [ "${r}" = "2" ]; then
|
||||||
erase "${installdir}"
|
erase "${installdir}"
|
||||||
|
printok "remove complete"
|
||||||
elif [ "${r}" = "3" ]; then
|
elif [ "${r}" = "3" ]; then
|
||||||
erase "${repodir}"
|
erase "${repodir}"
|
||||||
erase "${installdir}"
|
erase "${installdir}"
|
||||||
|
printok "remove complete"
|
||||||
elif [ "${r}" = "4" ]; then
|
elif [ "${r}" = "4" ]; then
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
printf "%s is not a valid option\n" "${r}"
|
printf "%s is not a valid option\n" "${r}"
|
||||||
printf "1-4: "
|
printf "1-4: "
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
exit
|
exit
|
||||||
done
|
done
|
||||||
|
|
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
* vNEXT
|
* vNEXT
|
||||||
|
|
||||||
|
**** Log when ~portzap rm~ completes successfully
|
||||||
|
Similar to other commands, log when the ~portzap rm~ command
|
||||||
|
completes successfully
|
||||||
|
|
||||||
**** Format log messages with program name
|
**** Format log messages with program name
|
||||||
This change formats log messages written to standard output
|
This change formats log messages written to standard output
|
||||||
and standard error with the pattern ~portzap: <message>~
|
and standard error with the pattern ~portzap: <message>~
|
||||||
|
|
Loading…
Reference in a new issue