mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 09:12:07 +00:00
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:
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user