aboutsummaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
author1138-4EB <1138-4EB@users.noreply.github.com>2017-02-10 20:53:02 +0100
committer1138-4EB <1138-4EB@users.noreply.github.com>2017-02-10 21:30:41 +0100
commitdd96728af8aed2327413456daada2a2f50c217b6 (patch)
tree447c910e806f38bd47aaeed9d251084b482c66b1 /dist
parent64b5191776b69bab0ca6ec87ca99fdb7e3ec8c12 (diff)
downloadghdl-dd96728af8aed2327413456daada2a2f50c217b6.tar.gz
ghdl-dd96728af8aed2327413456daada2a2f50c217b6.tar.bz2
ghdl-dd96728af8aed2327413456daada2a2f50c217b6.zip
Avoid problems from not using quotes in shell script.
Diffstat (limited to 'dist')
-rwxr-xr-xdist/travis-ci.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/dist/travis-ci.sh b/dist/travis-ci.sh
index 6da985787..935f2894b 100755
--- a/dist/travis-ci.sh
+++ b/dist/travis-ci.sh
@@ -4,9 +4,9 @@
# Stop in case of error
set -e
-CDIR=$PWD
+CDIR=$(pwd)
-if [ $# -ne 0 ]; then BLD=$1; fi
+if [ $# -ne 0 ]; then BLD="$1"; fi
# Display environment
echo "Environment:"
@@ -15,8 +15,8 @@ env
# Prepare
prefix="$CDIR/install-$BLD"
mkdir "$prefix"
-mkdir build-$BLD
-cd build-$BLD
+mkdir "build-$BLD"
+cd "build-$BLD"
# Configure
case "$BLD" in
@@ -52,11 +52,11 @@ PKG_VER=`grep Ghdl_Ver src/version.in | sed -e 's/.*"\(.*\)";/\1/'`
if [ "$TRAVIS_TAG" = "" ]; then
PKG_TAG=`date -u +%Y%m%d`
else
- PKG_TAG=$TRAVIS_TAG
+ PKG_TAG="$TRAVIS_TAG"
fi
-PKG_FILE=ghdl-$PKG_VER-$BLD-$PKG_TAG.tgz
+PKG_FILE="ghdl-$PKG_VER-$BLD-$PKG_TAG.tgz"
echo "creating $PKG_FILE"
-tar -zcvf $PKG_FILE -C $prefix .
+tar -zcvf "$PKG_FILE" -C "$prefix" .
# Test
export GHDL="$CDIR/install-$BLD/bin/ghdl"