summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngy döt Net <ingy@ingy.net>2019-04-05 12:40:08 -0700
committerIngy döt Net <ingy@ingy.net>2019-04-05 12:40:08 -0700
commit83c651fb256276cfef7c80ecb6b51237caeb5152 (patch)
treebb4e1e306d37853fd7f4d0a12418b23da0be645c
parent101a161cd308420576653c2af0da7dc66a5a8061 (diff)
downloadlibyaml-git-83c651fb256276cfef7c80ecb6b51237caeb5152.tar.gz
Use glob instad of ls to quiet shellcheck
-rwxr-xr-xdocker/scripts/libyaml-dist.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/docker/scripts/libyaml-dist.sh b/docker/scripts/libyaml-dist.sh
index 6f300cb..0722b33 100755
--- a/docker/scripts/libyaml-dist.sh
+++ b/docker/scripts/libyaml-dist.sh
@@ -13,7 +13,8 @@ cd libyaml.git
make dist
# get the tarball filename
-tarball=$(ls yaml-*.tar.gz | head -1)
+tarballs=(yaml-*.tar.gz)
+tarball=${tarballs[0]:?}
dirname=${tarball/.tar.gz/}
# Copy to output dir