summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2015-03-20 13:37:36 +0100
committerJan Pokorný <jpokorny@redhat.com>2015-03-20 17:41:51 +0100
commit7ae1d73fee13ba4c24b335c70835981d8486e4cc (patch)
tree7bad9f7baf94416348715a6b1e5522c7b145cb90
parent5bda0df069299009d7c9683d2cbfa39b1c8f51f1 (diff)
downloadclufter-7ae1d73fee13ba4c24b335c70835981d8486e4cc.tar.gz
clufter-7ae1d73fee13ba4c24b335c70835981d8486e4cc.tar.xz
clufter-7ae1d73fee13ba4c24b335c70835981d8486e4cc.zip
run-sdist-per-commit: quote command substitution
... to prevent word splitting (marked suspicious by ShellCheck tool) Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rwxr-xr-xmisc/run-sdist-per-commit4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/run-sdist-per-commit b/misc/run-sdist-per-commit
index 986b7a9..5484f7f 100755
--- a/misc/run-sdist-per-commit
+++ b/misc/run-sdist-per-commit
@@ -7,13 +7,13 @@
: ${GITHASH:=$Format:%h$}
GHREPO=jnpkrn/clufter
-pushd $(LC=C \
+pushd "$(LC=C \
curl -qL -o >(tar xzf -) "https://github.com/${GHREPO}/tarball/${GITHASH}" \
2>&1 \
| sed -e '/< Content-Disposition:/!d' \
-e 's|.*filename=\([^-]\+-[^-]\+-\)\(v[^g]\+\)\?g\([0-9a-z]\+\)\.tar\.gz|\1\3|' \
| tr -d '\r\n'
-)/__root__
+)/__root__"
python setup.py sdist -d "${OLDPWD}"
popd
echo "New source tarball created: $(ls -1t | head -n1)"