summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/build.sh b/build.sh
index 6a185091..ff704c9a 100755
--- a/build.sh
+++ b/build.sh
@@ -3,7 +3,7 @@ cd $(dirname "${BASH_SOURCE[0]}")
OD="$(pwd)"
# Pushes application version into the build information.
-RR_VERSION=1.6.1
+RR_VERSION=1.6.2
# Hardcode some values to the core package
LDFLAGS="$LDFLAGS -X github.com/spiral/roadrunner/cmd/rr/cmd.Version=${RR_VERSION}"
@@ -12,7 +12,7 @@ LDFLAGS="$LDFLAGS -X github.com/spiral/roadrunner/cmd/rr/cmd.BuildTime=$(date +%
LDFLAGS="$LDFLAGS -s"
build(){
- echo Packaging $1 Build
+ echo Packaging "$1" Build
bdir=roadrunner-${RR_VERSION}-$2-$3
rm -rf builds/"$bdir" && mkdir -p builds/"$bdir"
GOOS=$2 GOARCH=$3 ./build.sh
@@ -29,12 +29,12 @@ build(){
cd builds
if [ "$2" == "linux" ]; then
- tar -zcf $bdir.tar.gz $bdir
+ tar -zcf "$bdir".tar.gz "$bdir"
else
- zip -r -q $bdir.zip $bdir
+ zip -r -q "$bdir".zip "$bdir"
fi
- rm -rf $bdir
+ rm -rf "$bdir"
cd ..
}