use 'idiomatic' bash

This commit is contained in:
lalyos
2015-09-29 11:27:55 +02:00
parent b9a3d1ed32
commit 1a7fe0b9d7

View File

@@ -30,7 +30,7 @@ rm -rf pkg/*
mkdir -p bin/
# If its dev mode, only build for ourself
if [ "${NOMAD_DEV}x" != "x" ]; then
if [[ "${NOMAD_DEV}" ]]; then
XC_OS=$(go env GOOS)
XC_ARCH=$(go env GOARCH)
fi
@@ -65,7 +65,7 @@ for F in $(find ${DEV_PLATFORM} -mindepth 1 -maxdepth 1 -type f); do
cp ${F} ${MAIN_GOPATH}/bin/
done
if [ "${NOMAD_DEV}x" = "x" ]; then
if [[ "${NOMAD_DEV}" ]]; then
# Zip and copy to the dist dir
echo "==> Packaging..."
for PLATFORM in $(find ./pkg -mindepth 1 -maxdepth 1 -type d); do