Compare commits
2 commits
a41f37965e
...
b20e2154dc
Author | SHA1 | Date | |
---|---|---|---|
b20e2154dc | |||
ea359cc543 |
3 changed files with 25 additions and 6 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
|
|
@ -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
|
||||
|
|
|
@ -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>~
|
||||
|
|
Loading…
Reference in a new issue