Automatic build action, take 3
This commit is contained in:
parent
59f051b4dd
commit
7d97e22b69
6
build.sh
6
build.sh
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash -x
|
||||||
|
|
||||||
|
pwd
|
||||||
|
|
||||||
if [[ "$1" == "-h" ]] || [[ "$1" == "--help" ]]; then
|
if [[ "$1" == "-h" ]] || [[ "$1" == "--help" ]]; then
|
||||||
echo -e "Usage: $0 [ARCH|-h|--help]"
|
echo -e "Usage: $0 [ARCH|-h|--help]"
|
||||||
|
@ -19,4 +21,4 @@ CGO_ENABLED=0 GOOS=linux GOARCH="$ARCH" go build -o "../BUILD/enervent-ctrl-${VE
|
||||||
|
|
||||||
rm -rf ./*
|
rm -rf ./*
|
||||||
|
|
||||||
popd &> /dev/null || exit 1
|
popd &> /dev/null || exit 1
|
||||||
|
|
Loading…
Reference in New Issue