diff options
author | Dario Lombardo <lomato@gmail.com> | 2019-12-05 19:11:13 +0100 |
---|---|---|
committer | Dario Lombardo <lomato@gmail.com> | 2019-12-06 13:32:47 +0000 |
commit | b11640513957476519c4b0df387f53821a91e866 (patch) | |
tree | 80ffd089014553821e3da01135e1f8049e513340 /tools/bsd-setup.sh | |
parent | 9689eea25f98d510423f44d33225fbcd89d77f92 (diff) |
tools: use better operators in package scripts.
Change-Id: I1de75829de5f77fa5fe6c8715b1df76148937bc5
Reviewed-on: https://code.wireshark.org/review/35326
Reviewed-by: João Valverde <j@v6e.pt>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
Diffstat (limited to 'tools/bsd-setup.sh')
-rwxr-xr-x | tools/bsd-setup.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/bsd-setup.sh b/tools/bsd-setup.sh index 2ae05493bd..68469a9df9 100755 --- a/tools/bsd-setup.sh +++ b/tools/bsd-setup.sh @@ -156,18 +156,18 @@ esac ACTUAL_LIST=$BASIC_LIST # Now arrange for optional support libraries -if [ $ADDITIONAL != 0 ] +if [ $ADDITIONAL -ne 0 ] then ACTUAL_LIST="$ACTUAL_LIST $ADDITIONAL_LIST" fi $PM $PM_OPTIONS $ACTUAL_LIST $OPTIONS -if [ $? != 0 ] +if [ $? -ne 0 ] then exit 2 fi -if [ $ADDITIONAL == 0 ] +if [ $ADDITIONAL -eq 0 ] then echo -e "\n*** Optional packages not installed. Rerun with --install-optional to have them.\n" fi |