Fix edge case script-user-reset-password
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user