adduser fix (return if exists, instead of exit)

This commit is contained in:
bedefaced 2017-08-21 22:15:42 +03:00 committed by bedefaced
parent eaf01d91ad
commit 207e16a920
2 changed files with 4 additions and 2 deletions

View File

@ -41,7 +41,8 @@ do
: ${ANSREM:=$NOTREM} : ${ANSREM:=$NOTREM}
if [ "$NOTREM" == "$ANSREM" ]; then if [ "$NOTREM" == "$ANSREM" ]; then
exit 1 unset LOGIN PASSWORD
continue
else else
$DIR/deluser.sh $LOGIN $DIR/deluser.sh $LOGIN
DELETED=1 DELETED=1

View File

@ -41,7 +41,8 @@ do
: ${ANSREM:=$NOTREM} : ${ANSREM:=$NOTREM}
if [ "$NOTREM" == "$ANSREM" ]; then if [ "$NOTREM" == "$ANSREM" ]; then
exit 1 unset LOGIN PASSWORD
continue
else else
$DIR/deluser.sh $LOGIN $DIR/deluser.sh $LOGIN
DELETED=1 DELETED=1