diff --git a/env.sh b/env.sh index 6c5d9b1f5..6ab2d3799 100755 --- a/env.sh +++ b/env.sh @@ -54,12 +54,12 @@ elif [[ $LOGINHOST =~ ^m[A-Za-z0-9]+\.hpc\.dkrz\.de$ ]]; then STRATEGY="mistral.dkrz.de" elif [[ $LOGINHOST =~ ^levante ]] || [[ $LOGINHOST =~ ^l[:alnum:]+\.lvt\.dkrz\.de$ ]]; then STRATEGY="levante.dkrz.de" - # following regex only matches if input is 2 word like levante.nvhpc, this enables using different shells for a machine directly + # following regex only matches if input is 2 word like levante.nvhpc compid_regex="^([[:alnum:]]+)\.([[:alnum:]]+)$" if [[ $LOGINHOST =~ $compid_regex ]]; then COMPILERID="${BASH_REMATCH[2]}" fi - elif [[ $LOGINHOST =~ ^ollie[0-9]$ ]] || [[ $LOGINHOST =~ ^prod-[0-9]{4}$ ]]; then +elif [[ $LOGINHOST =~ ^ollie[0-9]$ ]] || [[ $LOGINHOST =~ ^prod-[0-9]{4}$ ]]; then STRATEGY="ollie" elif [[ $LOGINHOST =~ ^albedo[0-9]$ ]] || [[ $LOGINHOST =~ ^prod-[0-9]{4}$ ]]; then STRATEGY="albedo"