aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-06-26 16:43:13 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-06-26 16:43:13 +0000
commit650e2604c73ef06537460119b4614cfcef115430 (patch)
tree841f8070845698f51c60bdc25be30cad360dfcac
parent447861b03f128a79fd10f356157f1b47e5446103 (diff)
downloadcpt-650e2604c73ef06537460119b4614cfcef115430.tar.gz
kiss: Fix /etc exclusion.
FossilOrigin-Name: ec93b0dea0e6f5b6263c0a7ea19cac496b263c7c002209fbe0a9205b5b79bf45
-rwxr-xr-xkiss4
1 files changed, 2 insertions, 2 deletions
diff --git a/kiss b/kiss
index 6dc8cb8..d47abbc 100755
--- a/kiss
+++ b/kiss
@@ -200,7 +200,7 @@ pkg_install() {
rpath=${file#.}
case $rpath in
- /etc/*) [ -f "$sys_dir${rpath%/*}" ] || mv=1 ;;
+ /etc/*) [ -f "$sys_dir${rpath%/*}/${file##*/}" ] || mv=1 ;;
*) mv=1 ;;
esac
@@ -221,7 +221,7 @@ pkg_remove() {
cp "$(command -v rmdir)" "$cac_dir"
while read -r file; do
- [ "${file%/*}" = /etc ] && continue
+ [ "${file##/etc/*}" ] || continue
if [ -d "$sys_dir$file" ]; then
"$cac_dir/rmdir" "$sys_dir$file" 2>/dev/null || continue