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

Bugfix in setup_runscript_templates.sh to ensure clean copy of general runscript template.

parent 8402aefe
Branches
Tags
No related merge requests found
Pipeline #105846 failed
......@@ -49,7 +49,7 @@ fi
echo "Start setting up templates under HPC_scripts/..."
for f in "${BASE_DIR}"/HPC_scripts/*template.sh; do
echo "Setting up ${f}..."
fnew=${f%%.*}_${USER}.sh
fnew=${f%.*}_${USER}.sh
cp "${f}" "${fnew}"
sed -i "s|\(.*_dir=\).*|\1${data_dir}|g" "${fnew}"
done
......@@ -58,7 +58,7 @@ echo "Done!"
echo "Start setting up templates under no_HPC_scripts/"
for f in "${BASE_DIR}"/no_HPC_scripts/*template.sh; do
echo "Setting up ${f}..."
fnew=${f%%.*}_${USER}.sh
fnew=${f%.*}_${USER}.sh
cp "${f}" "${fnew}"
sed -i "s|\(.*_dir=\).*|\1${data_dir}|g" "${fnew}"
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment