Browse Source

exit status 1 for unknown command

pull/157/head
Jae Kwon 9 years ago
parent
commit
f70b548fb6
2 changed files with 5 additions and 4 deletions
  1. +4
    -3
      DOCKER/run.sh
  2. +1
    -1
      cmd/tendermint/main.go

+ 4
- 3
DOCKER/run.sh View File

@ -1,8 +1,9 @@
#! /bin/bash
go get -u $TMREPO/cmd/tendermint
cd $GOPATH/src/$TMREPO
git fetch -a origin
mkdir -p $GOPATH/src/$TMREPO
git clone https://$TMREPO.git .
git fetch
git reset --hard $TMHEAD
go get $TMREPO/cmd/tendermint
make
tendermint node

+ 1
- 1
cmd/tendermint/main.go View File

@ -53,6 +53,6 @@ Commands:
case "version":
fmt.Println(node.Version)
default:
fmt.Printf("Unknown command %v\n", args[0])
Exit(Fmt("Unknown command %v\n", args[0]))
}
}

Loading…
Cancel
Save