Skip to content

Commit

Permalink
macros: bash: Fix shellcheck warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dodys committed Jun 26, 2023
1 parent 3cc26e8 commit ea77544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/macros/10-bash.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,7 @@ if ! grep -qE '^\s*auth\s+\[default=die\]\s+pam_faillock\.so\s+authfail.*$' "$pa
if [ ! -z "$num_lines" ]; then
echo "$num_lines"
pattern=""
for i in {1..$num_lines}; do
for ((i=1; i <= num_lines; i++)); do
pattern="${pattern}n;"
done;
sed -i --follow-symlinks '/^auth.*pam_unix\.so.*/{'$pattern'a auth [default=die] pam_faillock.so authfail
Expand Down

0 comments on commit ea77544

Please sign in to comment.