Closed nwithan8 closed 4 years ago
Seems you need to use = rather than == on line 146. Testing example below (done on an x86_64 machine; uname -m prints out "x86_64")
uname -m
$ if [ $(uname -m) = 'x86_64' ] ; then > echo 'True' > fi True $ if [ $(uname -m) == 'x86_64' ] ; then > echo 'True' > fi sh: 4: [: x86_64: unexpected operator $ if [ "$(uname -m)" == "x86_64" ] ; then > echo "True" > fi sh: 7: [: x86_64: unexpected operator $ if [ "$(uname -m)" = "x86_64" ] ; then > echo "True" > fi True
Ah, I didn't realize == was non-standard: https://stackoverflow.com/a/2237103
==
Thanks for flagging! I've fixed the script.
Seems you need to use = rather than == on line 146. Testing example below (done on an x86_64 machine;
uname -m
prints out "x86_64")