Fix octal check
This commit is contained in:
2
runas.sh
2
runas.sh
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user