scripts/common.sh: remove a couple bashisms

This allows the scripts to work on systems that don't have /bin/bash as
/bin/sh--such as Debian.
This commit is contained in:
John Szakmeister
2014-02-23 15:01:41 -05:00
parent b0abcda487
commit 6241a49943

View File

@@ -1,13 +1,13 @@
platform='unknown' platform='unknown'
unameval=`uname` unameval=`uname`
if [ "$unameval" == 'Linux' ]; then if [ "$unameval" = 'Linux' ]; then
platform='linux' platform='linux'
elif [ "$unameval" == 'FreeBSD' ]; then elif [ "$unameval" = 'FreeBSD' ]; then
platform='freebsd' platform='freebsd'
fi fi
sha1sumcmd='sha1sum' sha1sumcmd='sha1sum'
if [ "$platform" == 'freebsd' ]; then if [ "$platform" = 'freebsd' ]; then
sha1sumcmd='shasum' sha1sumcmd='shasum'
fi fi