old bash versions have no tolower variable substitutions

This commit is contained in:
2022-07-11 12:18:35 +02:00
parent 75254e2f9c
commit d37e6d3cf1
+1 -1
View File
@@ -439,7 +439,7 @@ done
if [ "$BASECODE" -ge 3141200 ]
then
if [[ "${NOPVA,,}" =~ ^(|0|n|no|f|false|off)$ && -x "$EPICS_BASE/bin/$EPICS_HOST_ARCH/softIocPVA$EXEPOSTFIX" ]]
if [[ $(tr [A-Z] [a-z] <<< "$NOPVA") =~ ^(|0|n|no|f|false|off)$ && -x "$EPICS_BASE/bin/$EPICS_HOST_ARCH/softIocPVA$EXEPOSTFIX" ]]
then
EXE=$EPICS_BASE/bin/$EPICS_HOST_ARCH/softIocPVA$EXEPOSTFIX
ARGS="-D $EPICS_BASE/dbd/softIocPVA.dbd"