From 00d663bb7b73a9682cd4a1d72536bc4943197cdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz=20=28arab=2C=20vx?= =?UTF-8?q?p=29?= Date: Wed, 22 Nov 2017 00:17:29 +0000 Subject: vars/dist_{digest,tarballs}.vars: correctly check for ${ARG_TARBALL}. --- vars/dist_digest.vars | 2 +- vars/dist_tarballs.vars | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vars/dist_digest.vars b/vars/dist_digest.vars index 10377e07..5d28af38 100644 --- a/vars/dist_digest.vars +++ b/vars/dist_digest.vars @@ -4,7 +4,7 @@ pkg_dist_digest_all() { local __; - if [ "${ARG_TARBALL:-0}" -eq 1 ]; then + if [ -n "${ARG_TARBALL}" ]; then log_msg info "Compiling SHA256 sums..."; if [ -e "${PREFIX}/SHA256SUMS" ]; then build_fileop mv "${PREFIX}/SHA256SUMS" "${PREFIX}/SHA256SUMS.last"; diff --git a/vars/dist_tarballs.vars b/vars/dist_tarballs.vars index 5c918656..43f52184 100644 --- a/vars/dist_tarballs.vars +++ b/vars/dist_tarballs.vars @@ -66,7 +66,7 @@ pkgp_dist_tarball_src() { }; pkg_dist_tarballs_all() { - if [ "${ARG_TARBALL:-0}" -eq 1 ]; then + if [ -n "${ARG_TARBALL}" ]; then log_msg info "Building distribution tarballs..."; case "${TARBALL_SUFFIX}" in bz2) if [ -n "$(which pbzip2 2>/dev/null)" ]; then -- cgit v1.2.3