zeek/auxil/package-manager/testing/scripts/diff-remove-zkg-meta-commit
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

13 lines
256 B
Bash
Executable File

#! /usr/bin/env bash
#
# Suppress the SHA commit string in a zkg.meta's template.commit line.
# Get us "modern" regexps with sed.
if [ `uname` == "Linux" ]; then
sed="sed -r"
else
sed="sed -E"
fi
$sed -e 's/commit = [0-9a-z]{8}/commit = xxxxxxxx/'