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'
unameval=`uname`
if [ "$unameval" == 'Linux' ]; then
if [ "$unameval" = 'Linux' ]; then
platform='linux'
elif [ "$unameval" == 'FreeBSD' ]; then
elif [ "$unameval" = 'FreeBSD' ]; then
platform='freebsd'
fi
sha1sumcmd='sha1sum'
if [ "$platform" == 'freebsd' ]; then
if [ "$platform" = 'freebsd' ]; then
sha1sumcmd='shasum'
fi