Skip to content

Commit 4bbc526

Browse files
committed
bugfix: trap line detection with 'compact' runfile formatting
1 parent c24ec35 commit 4bbc526

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runfile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ function run() ( set -euo pipefail
518518
runfile_grep_filter_args=( -E "^(${task_re}|\\s*${trap_re})" )
519519
elif [[ -n "${RUNFILE_TRAP:-}" ]]
520520
then
521-
runfile_grep_filter_args=( -E "^(${task_re}|\\s+${RUNFILE_TRAP})" )
521+
runfile_grep_filter_args=( -E "^(${task_re}|\\s*${RUNFILE_TRAP})" )
522522
else
523523
runfile_grep_filter_args=( -Ev "^\s*${trap_re}" )
524524
fi

0 commit comments

Comments
 (0)