mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +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'
|
||||
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
|
||||
|
||||
|
Reference in New Issue
Block a user