Exit if trampoline file is empty. Fixes #1254.
A consequence of this fix is that travis-ci will complain on errors and fails again, and I expect this build to fail due to that very reason.
This commit is contained in:
parent
9bef321ece
commit
afb8882578
1 changed files with 7 additions and 1 deletions
6
bin/lein
6
bin/lein
|
@ -323,12 +323,18 @@ else
|
||||||
stty icanon echo > /dev/null 2>&1
|
stty icanon echo > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
## TODO: [ -r "$TRAMPOLINE_FILE" ] may be redundant? A trampoline file
|
||||||
|
## is always generated these days.
|
||||||
if [ -r "$TRAMPOLINE_FILE" ] && [ "$LEIN_TRAMPOLINE_WARMUP" = "" ]; then
|
if [ -r "$TRAMPOLINE_FILE" ] && [ "$LEIN_TRAMPOLINE_WARMUP" = "" ]; then
|
||||||
TRAMPOLINE="$(cat $TRAMPOLINE_FILE)"
|
TRAMPOLINE="$(cat $TRAMPOLINE_FILE)"
|
||||||
if [ "$INPUT_CHECKSUM" = "" ]; then
|
if [ "$INPUT_CHECKSUM" = "" ]; then
|
||||||
rm $TRAMPOLINE_FILE
|
rm $TRAMPOLINE_FILE
|
||||||
fi
|
fi
|
||||||
|
if [ "$TRAMPOLINE" = "" ]; then
|
||||||
|
exit $EXIT_CODE
|
||||||
|
else
|
||||||
exec sh -c "exec $TRAMPOLINE"
|
exec sh -c "exec $TRAMPOLINE"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
exit $EXIT_CODE
|
exit $EXIT_CODE
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue