pam-info fix

This commit is contained in:
Patrick Schleizer 2022-11-16 01:55:14 -05:00
parent ae113442a1
commit f59f959a8d
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -118,8 +118,11 @@ fi
## Get first line.
#pam_faillock_output_first_line="$(echo "$pam_faillock_output" | head --lines=1)"
echo "$pam_faillock_output" | read -t 10 -r pam_faillock_output_first_line || true
while read -t 10 -r pam_faillock_output_first_line ; do
break
done <<< "$pam_faillock_output"
true "pam_faillock_output_first_line: '$pam_faillock_output_first_line'"
## example pam_faillock_output_first_line:
## user: