[scripts] pass argv through locked script till the final execution target

This commit is contained in:
Fabio Erculiani 2012-09-17 08:57:00 +02:00
parent 96b9416504
commit 2cc772056e
3 changed files with 5 additions and 4 deletions

View File

@ -2,4 +2,4 @@
SABAYON_MOLECULE_HOME="${SABAYON_MOLECULE_HOME:-/sabayon}"
exec "${SABAYON_MOLECULE_HOME}/scripts/iso_build_locked.sh" "daily_iso_build.sh"
exec "${SABAYON_MOLECULE_HOME}/scripts/iso_build_locked.sh" "daily_iso_build.sh" "${@}"

View File

@ -6,6 +6,7 @@ if [ -z "${1}" ]; then
fi
BUILD_SCRIPT_NAME="${1}"
shift
SABAYON_MOLECULE_HOME="${SABAYON_MOLECULE_HOME:-/sabayon}"
. "${SABAYON_MOLECULE_HOME}/scripts/iso_build.include"
@ -28,8 +29,8 @@ SABAYON_MOLECULE_HOME="${SABAYON_MOLECULE_HOME:-/sabayon}"
kill_stale_process || exit 1
fi
"${SABAYON_MOLECULE_HOME}/scripts/${BUILD_SCRIPT_NAME}"
"${SABAYON_MOLECULE_HOME}/scripts/${BUILD_SCRIPT_NAME}" "${@}"
) 9> "${ISO_BUILD_LOCK}"
exit ${?}
exit ${?}

View File

@ -3,4 +3,4 @@
SABAYON_MOLECULE_HOME="${SABAYON_MOLECULE_HOME:-/sabayon}"
exec "${SABAYON_MOLECULE_HOME}/scripts/iso_build_locked.sh" \
"weekly_iso_build.sh"
"weekly_iso_build.sh" "${@}"