diff options
Diffstat (limited to 'src/cpt-lib.in')
-rw-r--r-- | src/cpt-lib.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpt-lib.in b/src/cpt-lib.in index 8a5783a..b137994 100644 --- a/src/cpt-lib.in +++ b/src/cpt-lib.in @@ -1470,7 +1470,7 @@ pkg_remove() { [ "$CPT_FORCE" = 1 ] || { log "$1" "Checking for reverse dependencies" - (cd "$sys_db"; set +f; grep -lFx "$1" -- */depends) && + (cd "$sys_db"; set +f; grep -lFx -- "$1" */depends) && die "$1" "Can't remove package, others depend on it" } # Block being able to abort the script with 'Ctrl+C' during removal. |