Skip to content

Commit

Permalink
Shellcheck fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
hjoliver committed Sep 5, 2023
1 parent 19fa4b2 commit 50bfeba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/functional/lib/bash/test_header
Original file line number Diff line number Diff line change
Expand Up @@ -597,8 +597,7 @@ log_scan () {
echo -n "scanning for '${pattern:0:30}'" >& $ERR
for _ in $(seq 1 "${REPS}"); do
echo -n '.' >& $ERR
>&2 echo grep -n $OPTS "$pattern"
newposition=$(grep -n $OPTS "$pattern" "$FILE" | \
newposition=$(grep -n "$OPTS" "$pattern" "$FILE" | \
tail -n 1 | cut -d ':' -f 1)
if (( newposition > position )); then
position=$newposition
Expand Down

0 comments on commit 50bfeba

Please sign in to comment.