Permalink
Browse files

Use POSIX sh string equality test (to make the dash shell on Ubuntu h…

…appy)
  • Loading branch information...
1 parent af98518 commit b1aa5fd244b1d4ab001ce575bd587f7150ed15f4 Christian Rishøj committed Aug 30, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 scripts/preinstall.sh
View
@@ -1,14 +1,14 @@
PLATFORM=`uname`
-if [ $PLATFORM == "Darwin" ]
+if [ "$PLATFORM" = "Darwin" ]
then
- if [ "$(locate mac-tick-processor)" == "" ]
+ if [ -z "$(locate mac-tick-processor)" ]
then
echo "Couldn't find mac-tick-processor"
exit 1
fi
-elif [ $PLATFORM == "Linux" ]
+elif [ "$PLATFORM" = "Linux" ]
then
- if [ "$(locate linux-tick-processor.py)" == "" ]
+ if [ -z "$(locate linux-tick-processor.py)" ]
then
echo "Couldn't find linux-tick-processor.py"
exit 1

0 comments on commit b1aa5fd

Please sign in to comment.