Skip to content

Commit

Permalink
Color output with reusable functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Waldz committed Aug 21, 2018
1 parent 7f2d3f0 commit 3743338
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/build
Expand Up @@ -17,6 +17,7 @@
#> readelf -d build/node/mysterium_node

. ./bin/helpers/functions.sh
. ./bin/helpers/output.sh

export GOOS=${GOOS:-`go env GOHOSTOS`}
export GOARCH=${GOARCH:-`go env GOHOSTARCH`}
Expand All @@ -25,12 +26,11 @@ echo "Compiling 'mysterium_node' for '$GOOS/$GOARCH'.."

go install -ldflags="$(get_linker_ldflags)" cmd/mysterium_node/mysterium_node.go
if [ $? -ne 0 ]; then
printf "\e[0;31m%s\e[0m\n" "Compile failed!"
print_error "Compile failed!"
exit 1
fi

mkdir -p $GOBIN/config

copy_client_config $GOOS $GOBIN

exit 0

0 comments on commit 3743338

Please sign in to comment.