1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 11:12:06 +00:00

legal inputs are now 0-9 (not 1-9) due to Line 92

(In the past, the only valid values for the STAGE variable in /etc/iiab/iiab.env were 1-thru-9)
This commit is contained in:
A Holt 2017-11-25 11:11:57 -05:00 committed by GitHub
parent 5c5adcb9cb
commit 00d91ce7fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,7 +77,7 @@ if [ -f /etc/iiab/iiab.env ]; then
if ! [ "$STAGE" -eq "$STAGE" ] 2> /dev/null; then
echo -e "\nEXITING: STAGE (counter) value == "$STAGE" is non-integer in /etc/iiab/iiab.env"
exit 1
elif [ "$STAGE" -lt 1 ] || [ "$STAGE" -gt 9 ]; then
elif [ "$STAGE" -lt 0 ] || [ "$STAGE" -gt 9 ]; then
echo -e "\nEXITING: STAGE (counter) value == "$STAGE" is out-of-range in /etc/iiab/iiab.env"
exit 1
fi