Commit e331d7c8 authored by Lukas Werner's avatar Lukas Werner
Browse files

Fixed usage of module

parent 78d69069
......@@ -104,7 +104,7 @@ if [[ ("$2" == "step_script" || "$2" == "build_script") && "${CUSTOM_ENV_NO_SLUR
done
runuser --login "$AUTH_USER" --command "cp $1 $BASE_DIR.tmp/$CUSTOM_ENV_CI_JOB_ID.sh"
echo "#!/bin/bash" > "$TMPDIR"/salloc.sh
echo "#!/bin/bash -l" > "$TMPDIR"/salloc.sh
echo "salloc --quiet --chdir \"$BASE_DIR\" ${SALLOC_OPTIONS[@]} \
srun --cpu-bind none --wait 0 --kill-on-bad-exit=1 \
\"$AUTH_USER_SHELL\" --login \"$BASE_DIR.tmp/$CUSTOM_ENV_CI_JOB_ID.sh\"" >> "$TMPDIR"/salloc.sh
......@@ -116,6 +116,6 @@ if [[ ("$2" == "step_script" || "$2" == "build_script") && "${CUSTOM_ENV_NO_SLUR
# srun --cpu-bind none --wait 0 --kill-on-bad-exit=1 \
# \"$AUTH_USER_SHELL\" --login \"$BASE_DIR.tmp/$CUSTOM_ENV_CI_JOB_ID.sh\""
else
runuser --login "$AUTH_USER" --command "cd \"$BASE_DIR\"; $1"
runuser --login "$AUTH_USER" --command "cd \"$BASE_DIR\"; bash -l $1"
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment