fix bad usage of 'su'. instead use 'set -e'.
I had had tried to use -e argument to su, thinking that it would go through to sh, but it does not. instead, just use 'set -e'
This commit is contained in:
parent
f9da508122
commit
102e440e2b
1 changed files with 2 additions and 2 deletions
4
stack.sh
4
stack.sh
|
@ -69,9 +69,9 @@ if [[ $EUID -eq 0 ]]; then
|
|||
cp -r -f "$PWD" "$STACK_DIR"
|
||||
chown -R stack "$STACK_DIR"
|
||||
if [[ "$SHELL_AFTER_RUN" != "no" ]]; then
|
||||
exec su -ec "cd $STACK_DIR; bash stack.sh; bash" stack
|
||||
exec su -c "set -e; cd $STACK_DIR; bash stack.sh; bash" stack
|
||||
else
|
||||
exec su -ec "cd $STACK_DIR; bash stack.sh" stack
|
||||
exec su -c "set -e; cd $STACK_DIR; bash stack.sh" stack
|
||||
fi
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue