aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-06-16 16:54:29 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-06-16 16:54:29 +0000
commit78d2bce2962934cc444dfd82b3ccb35fa0fff981 (patch)
tree39bf8b28a0eab6efda72a7ec22f8b8bc3bde0dcc
parenta2cce399d7d6fe1758e698e752143d31da9fb259 (diff)
downloadcpt-78d2bce2962934cc444dfd82b3ccb35fa0fff981.tar.gz
kiss: Removed backed up versions of rm/rmdir
FossilOrigin-Name: 6416020e612c28b40aadb4f05cd6502a300a35caabc2e78a34ce27adfd7ad744
-rwxr-xr-xkiss3
1 files changed, 3 insertions, 0 deletions
diff --git a/kiss b/kiss
index a35f9d0..d00c0b5 100755
--- a/kiss
+++ b/kiss
@@ -167,6 +167,9 @@ pkg_remove() {
"$cac_dir/rm" -f -- "$sys_dir$file" || log "Failed to remove $file."
fi && log "Removed $file"
done < "$sys_db/$name/manifest"
+
+ # Use the backup of 'rm' to remove 'rmdir' and itself.
+ "$cac_dir/rm" "$cac_dir/rmdir" "$cac_dir/rm"
}
pkg_updates() {