diff --git a/scripts/debloc.sh b/scripts/debloc.sh index 880d1b0..f0797cc 100755 --- a/scripts/debloc.sh +++ b/scripts/debloc.sh @@ -72,13 +72,13 @@ function _debloc-globallyInstalled { # package rm -f $STATUS > /dev/null return 0 fi - cat $STATUS | grep '^Status:' | grep 'not-installed' --quiet + cat $STATUS | grep '^Status:' | grep ' installed' --quiet if [ $? != 0 ]; then rm -f $STATUS > /dev/null - return 1 + return 0 else rm -f $STATUS > /dev/null - return 0 + return 1 fi }