This repository is under review for potential modification in compliance with Administration directives.
Notes: |
Release Name: Ver1.1
Notes:
Changes:
A few years ago, the bash syntax was changed since I released this
AHEAD.
In line 163 of pfizer_main.sh
# Set the start and end stages
if [[ $STAGE_SPEC && $STAGE_SPEC =~ "^[0-9]*$" ]]; then
STAGE_START=$STAGE_SPEC
STAGE_END=$STAGE_SPEC
elif [[ $STAGE_SPEC && $STAGE_SPEC =~ "^([0-9]*)\-([0-9]*)$"
]]; then
STAGE_START=${BASH_REMATCH[1]}
STAGE_END=${BASH_REMATCH[2]}
elif [[ ! $STAGE_SPEC ]]; then
STAGE_START=0
STAGE_END=15
else
echo "Wrong stage specification -s $STAGE_SPEC"
exit -1;
fi
Modified double quotation (Red color above) and use this way:
if [[ $STAGE_SPEC && $STAGE_SPEC =~ ^[0-9]*$ ]]; then
STAGE_START=$STAGE_SPEC
STAGE_END=$STAGE_SPEC
elif [[ $STAGE_SPEC && $STAGE_SPEC =~ ^([0-9]*)\-([0-9]*)$ ]];
then
STAGE_START=${BASH_REMATCH[1]}
STAGE_END=${BASH_REMATCH[2]}
elif [[ ! $STAGE_SPEC ]]; then
STAGE_START=0
STAGE_END=15
else
echo "Wrong stage specification -s $STAGE_SPEC"
exit -1;
fi
|
|