aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-06-10 21:29:56 +0000
committermerakor <cem@ckyln.com>2020-06-10 21:29:56 +0000
commit4a7e74cfd744c9e3dae3388b9ce52d144749d44b (patch)
treec26a54207e1202df28489ee0d3338b2e5f336b46 /kiss
parentd64cceb1dd92423eb283d9d9e0fa102d764e3ba4 (diff)
downloadcpt-4a7e74cfd744c9e3dae3388b9ce52d144749d44b.tar.gz
kiss: don't use regex on grep call
FossilOrigin-Name: 751d88fd57dfe11399473896154a54f4a4366cf3ffbac7c38efba9bbd5c76467
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss2
1 files changed, 1 insertions, 1 deletions
diff --git a/kiss b/kiss
index 9bb1e22..37aec63 100755
--- a/kiss
+++ b/kiss
@@ -1069,7 +1069,7 @@ pkg_remove() {
[ "${file##/etc/*}" ] || continue
if [ -d "$KISS_ROOT/$file" ]; then
- "$grep" -q "^$file\$" "$mak_dir/dirs" 2>/dev/null && continue
+ "$grep" -Fxq "$file" "$mak_dir/dirs" 2>/dev/null && continue
rmdir "$KISS_ROOT/$file" 2>/dev/null || continue
else
rm -f "$KISS_ROOT/$file"