Compare commits

..

No commits in common. "76d9e0a3bb88d60cdb8dd639a6761a60e0852c03" and "f7374a63b856ae7f7f5a775fff9084678b1df25b" have entirely different histories.

3 changed files with 14 additions and 33 deletions

View file

@ -1,12 +0,0 @@
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

View file

@ -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,21 +42,18 @@ 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

View file

@ -2,10 +2,6 @@
* 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>~