diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-18 13:33:06 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-18 13:33:06 (EDT) |
commit | 4511c2069dc447f2a70be3c84007d9f6209da38e (patch) | |
tree | 7749bf3cdb6f670b09c5703d88ba629b361eef62 | |
parent | 85ecc9d6a2348f8002da7ff2ceb35d46995e0983 (diff) |
ob-unpacksource: Replace here-document with printf
-rw-r--r-- | src/ob-unpacksource.sh | 5 |
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')" |