summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ob-unpacksource.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ob-unpacksource.sh b/src/ob-unpacksource.sh
index aa96f93..fe53db9 100644
--- a/src/ob-unpacksource.sh
+++ b/src/ob-unpacksource.sh
@@ -94,10 +94,7 @@ get_upstream_dir()
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
- ${upstream_ar_dir}
- EOF
- )"
+ dir_count="$(printf '%s\n' "${upstream_ar_dir}" | wc -l)"
case "${dir_count}" in
0)
ob_error "$(ob_get_msg 'no_upstream_dirs')"