fix if when no currentid

This commit is contained in:
Kyle Spearrin 2018-04-16 16:08:59 -04:00
parent db39d58ea8
commit dba596bf35
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ fi
if [ $CURRENTGID ]
then
if [ $CURRENTGID != $LGID ]
if [ "$CURRENTGID" != "$LGID" ]
then
groupmod -g $LGID $GROUPNAME
fi
@ -38,7 +38,7 @@ fi
# Create user and assign group
if [ $NOUSER == 0 ] && [ $CURRENTUID != $LUID ]
if [ $NOUSER == 0 ] && [ "$CURRENTUID" != "$LUID" ]
then
usermod -u $LUID $USERNAME
elif [ $NOUSER == 1 ]