File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -56,25 +56,25 @@ set -o pipefail
5656
5757caf_version=' @CAF_VERSION@'
5858CAFRUN=" @MPIEXEC@"
59- if [[ " ${CAFRUN} " == @* @ ]]; then
59+ if [[ " ${CAFRUN} " == @* @ || -z " ${CAFRUN} " ]]; then
6060 CAFRUN=mpiexec
6161fi
6262have_failed_img=@HAVE_FAILED_IMG@
63- if [[ ${have_failed_img} == @* @ ]]; then
63+ if [[ ${have_failed_img} == @* @ || -z " ${have_failed_img} " ]]; then
6464 have_failed_img=false
6565fi
6666numproc_flag=' @MPIEXEC_NUMPROC_FLAG@'
67- if [[ ${numproc_flag} == @* @ ]]; then
67+ if [[ ${numproc_flag} == @* @ || -z " ${numproc_flag} " ]]; then
6868 numproc_flag=' -np'
6969fi
7070preflags=" @MPIEXEC_PREFLAGS@"
7171preflags=" ${preflags// ;/ } "
72- if [[ " ${preflags} " == @* @ ]]; then
72+ if [[ " ${preflags} " == @* @ || -z " ${preflags} " ]]; then
7373 unset preflags
7474fi
7575postflags=" @MPIEXEC_POSTFLAGS@"
7676postflags=" ${postflags// ;/ } "
77- if [[ " ${postflags} " == @* @ ]]; then
77+ if [[ " ${postflags} " == @* @ || -z " ${postflags} " ]]; then
7878 unset postflags
7979fi
8080# -------------------------
You can’t perform that action at this time.
0 commit comments