Skip to content

Commit

Permalink
ssh-notifier: fix IGNORED_USERS
Browse files Browse the repository at this point in the history
  • Loading branch information
kreatoo committed Oct 8, 2024
1 parent f500ce3 commit 4ab8a55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/monocloud/ssh-notifier.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ getlogininfo() {

if [[ -n "${EXCLUDE_USERS[*]}" ]]; then
for exclude_user in "${EXCLUDE_USERS[@]}"; do
if [[ "$user" == "$exclude_user" && -n "$user" ]]; then
if [[ "${user:-$PAM_USER}" == "$exclude_user" && -n "${user-$PAM_USER}" ]]; then
return
fi
done
Expand Down

0 comments on commit 4ab8a55

Please sign in to comment.