Compare commits

..

2 commits

Author SHA1 Message Date
b20e2154dc Log when sourcezap rm completes successfully
Some checks are pending
sourcezap / shellcheck (push) Waiting to run
2024-09-14 04:24:49 -03:00
ea359cc543 Add editorconfig 2024-09-14 04:22:29 -03:00
3 changed files with 25 additions and 6 deletions

12
.editorconfig Normal file
View 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

View file

@ -20,12 +20,12 @@ erase()
dir="${1}"
printf "%s " "${dir}"
find "${dir}" \
-maxdepth 1 \
\! -name "." \
\! -name ".." \
\! -name "src" \
-exec printf . \; \
-exec rm -rf "{}" \;
-maxdepth 1 \
\! -name "." \
\! -name ".." \
\! -name "src" \
-exec printf . \; \
-exec rm -rf "{}" \;
echo
}
@ -45,11 +45,14 @@ while true; do
read -r r
if [ "${r}" = "1" ]; then
erase "${repodir}"
printok "remove complete"
elif [ "${r}" = "2" ]; then
erase "${installdir}"
printok "remove complete"
elif [ "${r}" = "3" ]; then
erase "${repodir}"
erase "${installdir}"
printok "remove complete"
elif [ "${r}" = "4" ]; then
break
else

View file

@ -2,6 +2,10 @@
* vNEXT
**** Log when ~sourcezap rm~ completes successfully
Similar to other commands, log when the ~sourcezap rm~ command
completes successfully
**** Format log messages with program name
This change formats log messages written to standard output
and standard error with the pattern ~sourcezap: <message>~