From b912ef51f22673e06a6ebfa5735439c44b0ca7e1 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 02 Sep 2018 20:02:53 -0400 Subject: index: Use ${TAR} --- 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/ .*$//')" \ -- cgit v0.9.1