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

Corrected if-statement for checking availability of jutil

parent 1b33f8ed
No related branches found
No related tags found
No related merge requests found
Pipeline #45266 failed
......@@ -67,7 +67,7 @@ fi
# set correct e-mail address in Batch scripts on Juwels and HDF-ML
if [[ "${HOST_NAME}" == hdfml* || "${HOST_NAME}" == juwels* ]]; then
if [ command -v jutil ]; then
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=""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment