diff --git a/script-user-reset-password b/script-user-reset-password index e7bac7ad..c70f02aa 100755 --- a/script-user-reset-password +++ b/script-user-reset-password @@ -19,7 +19,7 @@ is_root [[ $# -gt 2 ]] && "Too many arguments" && exit 1 -if ! id -u "$user" ; then +if ! id -u "$user" &>/dev/null; then echo "User $user does not exist" exit 1 fi