This PR moves the logic that checks if polygeist path is set from compile.sh to the frontend. There are two reasons for this change:
Keep the shell script as simple as possible.
If the polygeist path is empty and there are extra arguments after it, the positional argument $7 will not be an empty string, but rather the argument behind it.
This PR moves the logic that checks if polygeist path is set from
compile.sh
to the frontend. There are two reasons for this change:Keep the shell script as simple as possible.
If the polygeist path is empty and there are extra arguments after it, the positional argument $7 will not be an empty string, but rather the argument behind it.
A concrete example:
If there
state.polygeistPath
is an empty string, then the arguments passed to the shell script would be (the paths are simplified):So there are only 7 arguments instead of 8 (somehow the empty string is ignored).