1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 00:33:09 +00:00

Fix previous patch for OS X (#961)

Use posix version of sed that is available on all
platforms.

No functional change.
This commit is contained in:
Marco Costalba 2017-01-09 15:37:09 +01:00 committed by GitHub
parent 394e9cd892
commit d9dd520896
2 changed files with 2 additions and 1 deletions

View file

@ -48,7 +48,7 @@ script:
# checking bench for various build types
#
# obtain reference from git log
- git log | grep "\b[Bb]ench[ :]\+[0-9]\{7\}" | head -n 1 | sed -rn "s/[^0-9]*([0-9]+)/\1/p" > git_sig
- git log | grep "\b[Bb]ench[ :]\+[0-9]\{7\}" | head -n 1 | sed "s/[^0-9]*\([0-9][0-9]*\)/\1/g" > git_sig
- export benchref=$(cat git_sig)
- echo "Reference bench:" $benchref
# verify against reference

View file

@ -17,6 +17,7 @@ if [ $# -gt 0 ]; then
# compare to given reference
if [ "$1" != "$signature" ]; then
echo "signature mismatch: reference $1 obtained $signature"
exit 1
else
echo "signature OK: $signature"
fi