Fix octal check

This commit is contained in:
David Coppit
2015-06-26 01:10:33 -04:00
parent dd981dc799
commit 33c19314b3

View File

@@ -26,7 +26,7 @@ function process_args {
exit 1 exit 1
fi fi
if [[ ! "$UMASK" =~ ^[0-7][0-7][0-7][0-7]$ ]] if [[ ! "$UMASK" =~ ^0[0-7][0-7][0-7]$ ]]
then then
echo "The umask value $UMASK is not valid. It must be an octal number such as 0022" echo "The umask value $UMASK is not valid. It must be an octal number such as 0022"
exit 1 exit 1