Skip to content
Snippets Groups Projects
Commit c8adb6bc authored by Michael Langguth's avatar Michael Langguth
Browse files

Adapt convert_runscript.sh

to set project on JSC's HPCsystems.
parent 56d01e15
No related branches found
No related tags found
No related merge requests found
Pipeline #93527 failed
......@@ -93,13 +93,14 @@ fi
if [[ `grep "#SBATCH --error=" ${target_script}` ]]; then
sed -i "s|#SBATCH --error=.*|#SBATCH --error=${log_str}-err\.%j|g" ${target_script}
fi
# set correct e-mail address in Batch scripts on Juwels and HDF-ML
if [[ "${HOST_NAME}" == hdfml* || "${HOST_NAME}" == *juwels* ]]; then
# set correct e-mail address (only when jutil-tool is available)
if ! [[ -z `command -v jutil` ]]; then
USER_EMAIL=$(jutil user show -o json | grep email | cut -f2 -d':' | cut -f1 -d',' | cut -f2 -d'"')
else
USER_EMAIL=""
fi
sed -i "s/--mail-user=.*/--mail-user=$USER_EMAIL/g" ${target_script}
if [[ "${HOST_NAME}" == hdfml* || "${HOST_NAME}" == *juwels* ]]; then
sed -i "s/--account=.*/--mail-user=deepacf/g" ${target_script}
fi
# end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment