mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-06-14 15:19:15 -04:00
fix
This commit is contained in:
parent
d7643954d1
commit
f086787464
1 changed files with 3 additions and 2 deletions
|
@ -22,6 +22,7 @@ true "$0: START PHASE 2"
|
||||||
set -o errexit
|
set -o errexit
|
||||||
set -o errtrace
|
set -o errtrace
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
#set -o nounset
|
||||||
|
|
||||||
error_handler() {
|
error_handler() {
|
||||||
exit_code="$?"
|
exit_code="$?"
|
||||||
|
@ -198,9 +199,9 @@ pam_faillock_output_count="$(printf '%s\n' "$pam_faillock_output" | wc -l)"
|
||||||
## example pam_faillock_output_count:
|
## example pam_faillock_output_count:
|
||||||
## 4
|
## 4
|
||||||
|
|
||||||
if [[ "$deny" == *[!0-9]* ]]; then
|
if [[ "$pam_faillock_output_count" == *[!0-9]* ]]; then
|
||||||
printf '%s\n' "\
|
printf '%s\n' "\
|
||||||
$0: ERROR: Variable 'pam_faillock_output_count' is not numeric. pam_faillock_output_count: '$deny'
|
$0: ERROR: Variable 'pam_faillock_output_count' is not numeric. pam_faillock_output_count: '$pam_faillock_output_count'
|
||||||
ERROR: Please report this bug.
|
ERROR: Please report this bug.
|
||||||
" >&2
|
" >&2
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue