Update uninstall-linupx.sh

This commit is contained in:
2019-01-28 18:29:16 -06:00
parent 50c26ea659
commit 52da983768

View File

@@ -16,9 +16,11 @@ do_with_root set -eu
do_with_root rm -f /usr/local/bin/runup
do_with_root rm -Rf /opt/idssys/LinUPx
IDSSYSF="`ls -l /opt/idssys/ | grep -c ^d`"
if [ "$IDSSYSF" = 1 ]; then
do_with_root rm -Rf /opt/idssys
if [ -d "/opt/idssys" ]; then
IDSSYSF="`ls -l /opt/idssys/ | grep -c ^d`"
if [ "$IDSSYSF" = 1 ]; then
do_with_root rm -Rf /opt/idssys
fi
fi
echo ""