forgot to quit if a valid user was not found (cfc7064964
)
This commit is contained in:
parent
1c48b6a633
commit
b169f69740
@ -25,6 +25,7 @@ if [[ -n "$1" ]]; then
|
|||||||
GUSER="^$1"
|
GUSER="^$1"
|
||||||
if ! grep $GUSER /etc/shadow > /dev/null; then
|
if ! grep $GUSER /etc/shadow > /dev/null; then
|
||||||
>&2 echo "$0: ERROR: unable to find user '$1'"
|
>&2 echo "$0: ERROR: unable to find user '$1'"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user