No need to move the set -u
This commit is contained in:
parent
d646451091
commit
33614392cd
|
@ -1,5 +1,7 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
|
set -u
|
||||||
|
|
||||||
# Files and directories
|
# Files and directories
|
||||||
binDir="bin"
|
binDir="bin"
|
||||||
calcDir="calculation"
|
calcDir="calculation"
|
||||||
|
@ -24,15 +26,13 @@ logFileName="\$perfDirName/cache_\$typeCache-nbProd_\$nbProd-typeProd_\$typeProd
|
||||||
expDirName="logs"
|
expDirName="logs"
|
||||||
perfDirName="$expDirName/perfCommMulti-`date +'%F-%Hh%Mm%S'`"
|
perfDirName="$expDirName/perfCommMulti-`date +'%F-%Hh%Mm%S'`"
|
||||||
|
|
||||||
if [ -n "${LD_LIBRARY_PATH}" ]
|
if [ -n "${LD_LIBRARY_PATH:-}" ] # If LD_LIBRARY_PATH is unbound then the expansion is "null" value
|
||||||
then
|
then
|
||||||
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${PHLDir}/${PHLLibDir}:${PAPIDir}/${PAPILibDir}:${PAPIDir}/${PAPILibDir}/${PAPIPFMDir}"
|
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${PHLDir}/${PHLLibDir}:${PAPIDir}/${PAPILibDir}:${PAPIDir}/${PAPILibDir}/${PAPIPFMDir}"
|
||||||
else
|
else
|
||||||
LD_LIBRARY_PATH="${PHLDir}/${PHLLibDir}:${PAPIDir}/${PAPILibDir}:${PAPIDir}/${PAPILibDir}/${PAPIPFMDir}"
|
LD_LIBRARY_PATH="${PHLDir}/${PHLLibDir}:${PAPIDir}/${PAPILibDir}:${PAPIDir}/${PAPILibDir}/${PAPIPFMDir}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set -u
|
|
||||||
|
|
||||||
PAPILibPresent=""
|
PAPILibPresent=""
|
||||||
PFMLibPresent=""
|
PFMLibPresent=""
|
||||||
papiHighLevelLibPresent=""
|
papiHighLevelLibPresent=""
|
||||||
|
|
Loading…
Reference in New Issue