From 60b5af7091bc296612b702afd010b52c99a1ad35 Mon Sep 17 00:00:00 2001 From: Paolo Di Tommaso Date: Thu, 25 Apr 2019 16:29:57 +0200 Subject: [PATCH] Fix Launcher should return non-zero exit when fail to setp env #1126 --- nextflow | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nextflow b/nextflow index 8146f0d0b2..7cac78a82c 100755 --- a/nextflow +++ b/nextflow @@ -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}")