From 4511c2069dc447f2a70be3c84007d9f6209da38e Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 18 Mar 2019 13:33:06 -0400 Subject: ob-unpacksource: Replace here-document with printf --- (limited to 'src') 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')" -- cgit v0.9.1