summaryrefslogtreecommitdiffstats
path: root/src/ob-unpacksource.sh
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-03-18 13:31:33 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-03-18 13:31:33 (EDT)
commitd5b591e5471c3108d4c71dc9ff82e8ef06fa4d06 (patch)
treec7116df16653020017bab76a2e909335a77613db /src/ob-unpacksource.sh
parent94c944e38be9f887794c017eaebbcc34788de057 (diff)
ob-unpacksource: Declare local variables
Diffstat (limited to 'src/ob-unpacksource.sh')
-rw-r--r--src/ob-unpacksource.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ob-unpacksource.sh b/src/ob-unpacksource.sh
index a4bb88d..ed82071 100644
--- a/src/ob-unpacksource.sh
+++ b/src/ob-unpacksource.sh
@@ -56,6 +56,8 @@ get_upstream_archive()
get_upstream_compression()
{
+ local z_ext=
+
z_ext="${upstream_ar#../${upstream_ar_base}}"
case "${z_ext}" in
'')
@@ -88,6 +90,8 @@ get_upstream_compression()
get_upstream_dir()
{
+ local dir_count=
+
upstream_ar_dir="$(tar "-t${upstream_ar_z}f" "${upstream_ar}" | \
sed -n 's|^\(\./\)\{0,1\}\([^/]\{1,\}\).*$|\2|p' | sort | uniq)"
dir_count="$(wc -l <<-EOF