Multiple states of non-install
This commit is contained in:
parent
7ca5789489
commit
99b89352be
|
@ -72,13 +72,13 @@ function _debloc-globallyInstalled { # package
|
||||||
rm -f $STATUS > /dev/null
|
rm -f $STATUS > /dev/null
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
cat $STATUS | grep '^Status:' | grep 'not-installed' --quiet
|
cat $STATUS | grep '^Status:' | grep ' installed' --quiet
|
||||||
if [ $? != 0 ]; then
|
if [ $? != 0 ]; then
|
||||||
rm -f $STATUS > /dev/null
|
rm -f $STATUS > /dev/null
|
||||||
return 1
|
return 0
|
||||||
else
|
else
|
||||||
rm -f $STATUS > /dev/null
|
rm -f $STATUS > /dev/null
|
||||||
return 0
|
return 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue