summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de>2017-11-22 00:17:29 +0000
committerLucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de>2017-11-22 00:17:29 +0000
commit00d663bb7b73a9682cd4a1d72536bc4943197cdc (patch)
tree71e8cba39dc71b3f568a33466f42c46e8347d459
parentd7620f8c24297f6a28657b1a5b853e717b1cb9b7 (diff)
downloadmidipix_build-00d663bb7b73a9682cd4a1d72536bc4943197cdc.tar.bz2
midipix_build-00d663bb7b73a9682cd4a1d72536bc4943197cdc.tar.xz
vars/dist_{digest,tarballs}.vars: correctly check for ${ARG_TARBALL}.
-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