Skip to content

Commit

Permalink
Fix Launcher should return non-zero exit when fail to setp env #1126
Browse files Browse the repository at this point in the history
  • Loading branch information
pditommaso committed Apr 25, 2019
1 parent a1e2457 commit 60b5af7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nextflow
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ if [ -s "$LAUNCH_FILE" ] && [ "$LAUNCH_FILE" -nt "$NXF_BIN" ]; then
else
# otherwise run the capsule and get the result classpath in the 'launcher' and save it to a file
cli=($("$JAVA_CMD" "${JAVA_OPTS[@]}" -jar "$NXF_BIN"))
[[ $? -ne 0 ]] && echo_red 'Unable to initialize nextflow environment' && exit $?
[[ $? -ne 0 ]] && echo_red 'Unable to initialize nextflow environment' && exit 1

if [[ "$JAVA_VER" =~ ^(9|10|11) ]]; then
launcher=("${cli[@]:0:1}")
Expand Down

0 comments on commit 60b5af7

Please sign in to comment.