zeek/testing/scripts/diff-remove-spicy-abspath
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

7 lines
235 B
Bash
Executable File

#!/usr/bin/env bash
#
# Replace absolute paths in Spicy error message with the basename. This is more
# restrictive than diff-remove-abspath to avoid catching other stuff.
sed -E 's#/([^:/]{1,}/){1,}([^:/]{1,}\.spicy[:,])#<...>/\2#g'