mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-12 06:41:31 +00:00
use exit status
This commit is contained in:
@@ -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