diff options
author | Maarten Aertsen <maarten@nlnetlabs.nl> | 2024-02-27 22:39:57 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-02-29 00:04:21 +0100 |
commit | 65571b67d7d310089e40d13f26b06cfcb85465bb (patch) | |
tree | f6b8baf64db511ac11eeb10d2c4d0654d71a0447 /contrib/git-stats.sh | |
parent | 8ba852ea7a3a20634f6866c32231a7e1409077cf (diff) | |
download | aerc-65571b67d7d310089e40d13f26b06cfcb85465bb.tar.gz |
contrib: use sed -E for shell scripts
The + character is not part of the 'basic regular expressions' in BSD
grep. Use -E to enable extended (modern) regular expressions. Also
remove escaping. This makes the commit msg hook work on macOS 14.2.
Signed-off-by: Maarten Aertsen <maarten@nlnetlabs.nl>
Signed-off-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'contrib/git-stats.sh')
-rwxr-xr-x | contrib/git-stats.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/git-stats.sh b/contrib/git-stats.sh index 2ee1d61d..95121fc5 100755 --- a/contrib/git-stats.sh +++ b/contrib/git-stats.sh @@ -21,7 +21,7 @@ while read -r commits author; do } done | column -t -s ';' -N "$columns" -R "${columns#*,}" | -sed -r 's/[[:space:]]+$//' +sed -E 's/[[:space:]]+$//' echo @@ -35,4 +35,4 @@ while read -r commits author; do printf '%s;%s\n' "$author" "$commits" done | column -t -s ';' -N "$columns" -R "${columns#*,}" | -sed -r 's/[[:space:]]+$//' +sed -E 's/[[:space:]]+$//' |