mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-29 12:17:11 +00:00
fixup scripts
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user