summaryrefslogtreecommitdiffstats
path: root/.travis/create_artifacts.sh
diff options
context:
space:
mode:
authorPaweł Krupa <pawel@krupa.net.pl>2018-09-29 01:09:34 +0200
committerCosta Tsaousis <costa@tsaousis.gr>2018-09-29 02:09:34 +0300
commita1b6a7f5328974aaddd7f631135c58e1d620c820 (patch)
treef834274490755daeddc0b445e9c75d18b71b88e1 /.travis/create_artifacts.sh
parent986e32a03b2f01ac09b23d7f1be28a2799d7fd3b (diff)
[cleanup crusade] Shellcheck (#4261)
* lint libreswan module * disable linting obsolete shell modules * shellcheck more shell modules * fix review; lint helper scripts * more shellcheck * fix SC2235 in apache.chart.sh * shellcheck last portion of charts.d scripts * final shellcheck; make travis blocking * fix cppcheck * fix indents; fix expansion * fix local var assignments
Diffstat (limited to '.travis/create_artifacts.sh')
-rwxr-xr-x.travis/create_artifacts.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/.travis/create_artifacts.sh b/.travis/create_artifacts.sh
index dacc67825d..1c1f909329 100755
--- a/.travis/create_artifacts.sh
+++ b/.travis/create_artifacts.sh
@@ -1,8 +1,9 @@
#!/bin/bash
+# shellcheck disable=SC2230
if [ ! -f .gitignore ]
then
- echo "Run as ./travis/$(basename $0) from top level directory of git repository"
+ echo "Run as ./travis/$(basename "$0") from top level directory of git repository"
exit 1
fi
@@ -19,6 +20,6 @@ fakeroot ./packaging/git-build
python -c 'import os,sys,fcntl; flags = fcntl.fcntl(sys.stdout, fcntl.F_GETFL); fcntl.fcntl(sys.stdout, fcntl.F_SETFL, flags&~os.O_NONBLOCK);'
# make self-extractor
./makeself/build-x86_64-static.sh
-for i in *.tar.gz; do sha512sum -b $i > $i.sha; done
-for i in *.gz.run; do sha512sum -b $i > $i.sha; done
+for i in *.tar.gz; do sha512sum -b "$i" > "$i.sha"; done
+for i in *.gz.run; do sha512sum -b "$i" > "$i.sha"; done
./.travis/deploy-if-have-key