mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-12 17:59:58 +01:00
Don't quote ${SH} (#1240)
When ${SH} is quoted one cannot replace the shell with another shell with
arguments, e.g., for debugging purposes: SH="sh -x" bastille ...
Don't quote, expect the shell path to never contain a space and be from /etc/shells.
This fixes #1240
This commit is contained in:
@@ -240,7 +240,7 @@ if [ -f "${SCRIPTPATH}" ]; then
|
||||
|
||||
: "${SH:=sh}"
|
||||
|
||||
exec "${SH}" "${SCRIPTPATH}" "$@"
|
||||
exec ${SH} "${SCRIPTPATH}" "$@"
|
||||
|
||||
else
|
||||
error_exit "${SCRIPTPATH} not found."
|
||||
|
||||
Reference in New Issue
Block a user