From ff3dbd5b2a1965494b5cae9639f21c4e3894907d Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sat, 1 Jun 2013 07:56:46 +0200 Subject: [PATCH] [scripts] set SABAYON_RELEASE date for monthly one month ahead --- scripts/iso_build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/iso_build.sh b/scripts/iso_build.sh index 31e1666..2b53f51 100755 --- a/scripts/iso_build.sh +++ b/scripts/iso_build.sh @@ -174,7 +174,8 @@ elif [ "${ACTION}" = "dailybase" ]; then elif [ "${ACTION}" = "monthly" ] || [ "${ACTION}" = "release" ]; then if [ "${ACTION}" = "monthly" ]; then - SABAYON_RELEASE=$(date -u +%g.%m) + # always one month ahead + SABAYON_RELEASE=$(/bin/date -u --date="$(/bin/date -u +%g-%m-%d) +1 month" "+%g.%m") fi if [ -z "${SABAYON_RELEASE}" ]; then # release action must set this echo "Cannot set SABAYON_RELEASE, wtf?" >&2