aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bsd-setup.sh
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2019-12-04 17:09:40 +0100
committerAnders Broman <a.broman58@gmail.com>2019-12-05 05:37:44 +0000
commit469228a2e555d16a54dd31f73426d50f57b2ba50 (patch)
tree3ba97daffadd56668b7ddc7d09bce3008f206772 /tools/bsd-setup.sh
parent839e615fcbfc7ed8757ecaa6638b4ec7c06fd8f5 (diff)
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>
Diffstat (limited to 'tools/bsd-setup.sh')
-rwxr-xr-xtools/bsd-setup.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/bsd-setup.sh b/tools/bsd-setup.sh
index 45c7014fe8..2ae05493bd 100755
--- a/tools/bsd-setup.sh
+++ b/tools/bsd-setup.sh
@@ -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