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
56
56
57
57
caf_version=' @CAF_VERSION@'
58
58
CAFRUN=" @MPIEXEC@"
59
- if [[ " ${CAFRUN} " == @* @ ]]; then
59
+ if [[ " ${CAFRUN} " == @* @ || -z " ${CAFRUN} " ]]; then
60
60
CAFRUN=mpiexec
61
61
fi
62
62
have_failed_img=@HAVE_FAILED_IMG@
63
- if [[ ${have_failed_img} == @* @ ]]; then
63
+ if [[ ${have_failed_img} == @* @ || -z " ${have_failed_img} " ]]; then
64
64
have_failed_img=false
65
65
fi
66
66
numproc_flag=' @MPIEXEC_NUMPROC_FLAG@'
67
- if [[ ${numproc_flag} == @* @ ]]; then
67
+ if [[ ${numproc_flag} == @* @ || -z " ${numproc_flag} " ]]; then
68
68
numproc_flag=' -np'
69
69
fi
70
70
preflags=" @MPIEXEC_PREFLAGS@"
71
71
preflags=" ${preflags// ;/ } "
72
- if [[ " ${preflags} " == @* @ ]]; then
72
+ if [[ " ${preflags} " == @* @ || -z " ${preflags} " ]]; then
73
73
unset preflags
74
74
fi
75
75
postflags=" @MPIEXEC_POSTFLAGS@"
76
76
postflags=" ${postflags// ;/ } "
77
- if [[ " ${postflags} " == @* @ ]]; then
77
+ if [[ " ${postflags} " == @* @ || -z " ${postflags} " ]]; then
78
78
unset postflags
79
79
fi
80
80
# -------------------------
You can’t perform that action at this time.
0 commit comments