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:
Scott Moser 2011-10-12 20:00:34 -04:00
parent f9da508122
commit 102e440e2b

View file

@ -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