summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--vars/dist_digest.vars2
-rw-r--r--vars/dist_tarballs.vars2
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