19 lines
407 B
Plaintext
19 lines
407 B
Plaintext
|
#!/bin/bash
|
||
|
set -xeuo pipefail
|
||
|
|
||
|
parent_ref=$(git rev-parse HEAD)
|
||
|
cd "$(git rev-parse --show-toplevel)"
|
||
|
./release --nosign v99.0
|
||
|
trap "git tag -d v99.0; git reset --hard $parent_ref" EXIT
|
||
|
|
||
|
want=" 1 file changed, 2 insertions(+), 2 deletions(-)"
|
||
|
got=$(git show --shortstat HEAD | tail -1)
|
||
|
|
||
|
if [[ "$want" != "$got" ]]; then
|
||
|
echo wanted:
|
||
|
echo \ \ "$want"
|
||
|
echo got:
|
||
|
echo \ \ "$got"
|
||
|
exit 1
|
||
|
fi
|