Closed RyanGlScott closed 3 months ago
After the changes in https://github.com/GaloisInc/saw-script/pull/2066, running build.sh as a script fails with:
build.sh
$ ./build.sh ./build.sh: 8: Syntax error: "(" unexpected
Note that I am running on Ubuntu 22.04, where sh is symlinked to dash.
sh
dash
ShellCheck has the following to say about build.sh:
$ shellcheck build.sh In build.sh line 8: function install() { ^-- SC2112 (warning): 'function' keyword is non-standard. Delete it.
And indeed, the script runs without issue if I change function install() to simply install().
function install()
install()
cc @sauclovian-g
After the changes in https://github.com/GaloisInc/saw-script/pull/2066, running
build.sh
as a script fails with:Note that I am running on Ubuntu 22.04, where
sh
is symlinked todash
.ShellCheck has the following to say about
build.sh
:And indeed, the script runs without issue if I change
function install()
to simplyinstall()
.cc @sauclovian-g