From 4906126657039a22480aa38beff1171f262c2f1d Mon Sep 17 00:00:00 2001 From: Bryan Roessler Date: Sun, 23 Jan 2022 12:04:12 -0500 Subject: [PATCH] Fix edge case script-user-reset-password --- script-user-reset-password | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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