tools: fix check of shell variables in other setup scripts.

Change-Id: I7423f994b2295ef8336c37fd2e53418d363a4327
Reviewed-on: https://code.wireshark.org/review/35309
Reviewed-by: Dario Lombardo <lomato@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Dario Lombardo 2019-12-04 17:09:40 +01:00 committed by Anders Broman
parent 839e615fcb
commit 469228a2e5
2 changed files with 4 additions and 4 deletions

View File

@ -156,7 +156,7 @@ esac
ACTUAL_LIST=$BASIC_LIST
# Now arrange for optional support libraries
if [ $ADDITIONAL ]
if [ $ADDITIONAL != 0 ]
then
ACTUAL_LIST="$ACTUAL_LIST $ADDITIONAL_LIST"
fi
@ -167,7 +167,7 @@ then
exit 2
fi
if [ ! $ADDITIONAL ]
if [ $ADDITIONAL == 0 ]
then
echo -e "\n*** Optional packages not installed. Rerun with --install-optional to have them.\n"
fi

View File

@ -222,7 +222,7 @@ echo "libnl3/libnl are unavailable" >&2
ACTUAL_LIST=$BASIC_LIST
# Now arrange for optional support libraries
if [ $ADDITIONAL ]
if [ $ADDITIONAL != 0 ]
then
ACTUAL_LIST="$ACTUAL_LIST $ADDITIONAL_LIST"
fi
@ -230,7 +230,7 @@ fi
$PM $PM_OPT install $ACTUAL_LIST $OPTIONS
# Now arrange for optional support libraries
if [ ! $ADDITIONAL ]
if [ $ADDITIONAL == 0 ]
then
echo -e "\n*** Optional packages not installed. Rerun with --install-optional to have them.\n"
fi