forgot to quit if a valid user was not found (cfc7064964)

This commit is contained in:
Pratham Patel 2023-11-20 18:05:05 +05:30
parent 1c48b6a633
commit b169f69740
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ if [[ -n "$1" ]]; then
GUSER="^$1"
if ! grep $GUSER /etc/shadow > /dev/null; then
>&2 echo "$0: ERROR: unable to find user '$1'"
exit 1
fi
fi