From 8f4e93bd5eb4db22ffd225128a20260fd8280622 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Wed, 3 Apr 2013 16:10:22 +0100 Subject: [PATCH] [scripts] iso_build: expose MAKE_TORRENTS through --torrents --- scripts/iso_build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/iso_build.sh b/scripts/iso_build.sh index 7741778..d1dca6f 100755 --- a/scripts/iso_build.sh +++ b/scripts/iso_build.sh @@ -36,6 +36,7 @@ for arg in "$@"; do [[ "${arg}" = "--stdout" ]] && DO_STDOUT="1" [[ "${arg}" = "--sleepnight" ]] && DO_SLEEPNIGHT="1" [[ "${arg}" = "--pushonly" ]] && DO_PUSHONLY="1" + [[ "${arg}" = "--torrents" ]] && MAKE_TORRENTS="1" done # Initialize script variables @@ -238,7 +239,6 @@ elif [ "${ACTION}" = "monthly" ] || [ "${ACTION}" = "release" ]; then ) fi -MAKE_TORRENTS="${MAKE_TORRENTS:-0}" DAILY_TMPDIR= export ETP_NONINTERACTIVE=1 @@ -440,7 +440,7 @@ build_sabayon() { cp -p "${SABAYON_MOLECULE_HOME}"/iso/*"${ISO_TAG}"* \ "${SABAYON_MOLECULE_HOME}"/iso_rsync/ || return 1 date > "${SABAYON_MOLECULE_HOME}"/iso_rsync/RELEASE_DATE_"${ISO_TAG}" - if [ "${MAKE_TORRENTS}" != "0" ]; then + if [ -n "${MAKE_TORRENTS}" ]; then "${SABAYON_MOLECULE_HOME}"/scripts/make_torrents.sh \ || return 1 fi