aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremmett1 <emmett1.2miligrams@protonmail.com>2025-02-23 22:54:03 +0800
committeremmett1 <emmett1.2miligrams@protonmail.com>2025-02-23 22:54:03 +0800
commit98724cd2127afbe46779a5210d68ac485f776b36 (patch)
treee2ce44df59f0d691006fe9fd49b8bbc36111f1b2
parent38cd9ef4e045e5875953ae1c28a206d14ad5553a (diff)
downloadspm-98724cd2127afbe46779a5210d68ac485f776b36.tar.gz
spm-98724cd2127afbe46779a5210d68ac485f776b36.zip
spm -r also remove .new files
-rwxr-xr-xspm1
1 files changed, 1 insertions, 0 deletions
diff --git a/spm b/spm
index 672d819..d5980c5 100755
--- a/spm
+++ b/spm
@@ -246,6 +246,7 @@ spm_remove() {
tail -n+2 $1 | tac | while read -r line; do
case $line in
*/) grep -x "$line" * | grep -v $1: >/dev/null || rmdir $VERBOSE "${SPM_ROOT%/}"/"$line";;
+ etc/*) rm $VERBOSE "${SPM_ROOT%/}"/"$line"; rm -f $VERBOSE "${SPM_ROOT%/}"/"$line".new;;
*) rm $VERBOSE "${SPM_ROOT%/}"/"$line";;
esac
done