fixup scripts

This commit is contained in:
William Banfield
2021-11-12 12:38:42 -05:00
parent 04f6feb32b
commit 2660ac9308
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -1,11 +1,12 @@
#!/usr/bin/env bash
set -eo pipefail
set -euxo pipefail
# By default, this script runs against the latest commit to the master branch
# in the Tendermint spec repository. To use this script with a different version
# of the spec repository, run it with the $VERS environment variable set to the
# desired commit in the spec repo.
VERS=5f16657dcfbb9b8d68eabe6a23672f86a4fde12d
: ${VERS:=master}
URL_PATH=tarball/
if [[ VERS -ne master ]]; then
+2 -2
View File
@@ -1,5 +1,5 @@
#!/usr/bin/sh
set -euo pipefail
set -eo pipefail
# This script appends the "option go_package" proto option to the file located at $FNAME.
# This option specifies what the package will be named when imported by other packages.
@@ -16,7 +16,7 @@ if [[ ! -z "$3" ]]; then
fi
if ! grep -q 'option\s\+go_package\s\+=\s\+.*;' $FNAME; then
if ! `grep -q 'option\s\+go_package\s\+=\s\+.*;' $FNAME`; then
sed -i "s/\(package tendermint.*\)/\1\n\noption go_package = \"$MODNAME\/$PACKAGE\";/g" $FNAME
else
sed -i "s/option\s\+go_package\s\+=\s\+.*;/option go_package = \"$MODNAME\/$PACKAGE\";/g" $FNAME