summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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