diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2018-09-02 20:02:53 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2018-09-02 20:02:53 (EDT) |
commit | b912ef51f22673e06a6ebfa5735439c44b0ca7e1 (patch) | |
tree | 7d8f73f3844a5e63d0a3c7be40d1bf4e12496c8a /src/index.sh | |
parent | 5e90de32f38363fab1a296a457173294c3e09127 (diff) |
index: Use ${TAR}
Diffstat (limited to 'src/index.sh')
-rw-r--r-- | src/index.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/index.sh b/src/index.sh index ea479d5..ebb348e 100644 --- a/src/index.sh +++ b/src/index.sh @@ -43,8 +43,9 @@ feed_add_package() feed_hash_idx="${base_dir}/feeds/${chan}/${dist}/${arch}/${plat}" feed_hash_idx="${feed_hash_idx}/${sect}/.db/${pkg_hash}" mkdir -p "${feed_hash_idx}/info" - tar -xzOf "${base_dir}/${file}" 'control.tar.gz' | \ - tar -xzO './control' >"${feed_hash_idx}/info/${pkg}.control" + "${TAR}" -xzOf "${base_dir}/${file}" 'control.tar.gz' | \ + "${TAR}" -xzO './control' \ + >"${feed_hash_idx}/info/${pkg}.control" printf 'Filename: %s\nSize: %s\nMD5sum: %s\nSHA256sum: %s\n\n' \ "../../../../../../${file}" "${size}" \ "$("${MD5SUM}" "${base_dir}/${file}" | sed 's/ .*$//')" \ |