diff --git a/nextflow b/nextflow index 86214ec377..9b7395b7a9 100755 --- a/nextflow +++ b/nextflow @@ -166,8 +166,8 @@ function launch_nextflow() { for x in "${launcher[@]}"; do x="${x%\"}" x="${x#\"}" - cmdline+=("$x") - done + cmdline+=("$x") + done if [[ "$bg" ]]; then local pid_file="${NXF_PID_FILE:-.nextflow.pid}" @@ -460,6 +460,7 @@ else launcher+=("${cmd_tail[@]}") fi + # create the launch file only when using the legacy launcher (capsule) if [[ $NXF_LEGACY_LAUNCHER ]]; then # Don't show errors if the LAUNCH_FILE can't be created if mkdir -p "${NXF_LAUNCHER}" 2>/dev/null; then