Fix "bashisms" in tanuki's script

This commit is contained in:
kytv
2011-09-13 01:18:58 +00:00
parent 98c44f1bbd
commit 667e4345a0

View File

@ -321,7 +321,7 @@ if [ "$DIST_OS" = "macosx" ]
then
OS_VER=`sw_vers | grep 'ProductVersion:' | grep -o '[0-9]*\.[0-9]*\.[0-9]*'`
DIST_ARCH="universal"
if [[ "$OS_VER" < "10.5.0" ]]
if [ "$OS_VER" -lt "10.5.0" ]
then
DIST_BITS="32"
else
@ -930,7 +930,7 @@ macosxstart() {
fi
# If launchd is set to run the daemon already at Load, we don't need to call start
getpid
if [ "X$pid" == "X" ] ; then
if [ "X$pid" = "X" ] ; then
launchctl start ${APP_PLIST_BASE}
fi