This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository buildscripts. commit a9f8ba60f80eaf59c407f5be95caef7bc9485278 Author: Mihai Moldovan <ionic@ionic.de> Date: Sat Nov 25 23:32:07 2017 +0100 bin/slave-start-prepare.sh: sync up buildscripts before doing anything "critical". --- bin/slave-start-prepare.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/bin/slave-start-prepare.sh b/bin/slave-start-prepare.sh index db6ece6..cdc2571 100755 --- a/bin/slave-start-prepare.sh +++ b/bin/slave-start-prepare.sh @@ -12,6 +12,11 @@ typeset prefix="$(cut -d"-" -f1 <<< "$(basename "${0}")")" # For now, do this stuff manually. if [[ "${#}" -eq "0" ]]; then + # Sync up buildscripts directory when script is called first. + # Subsequent invocations will directly benefit from the updated + # data (after exec calls.) + "${HOME}/bin/slave-sync.sh" + typeset -a set_groups set_groups=( "mock" "obs" "sbuild" ) @@ -36,8 +41,8 @@ else else if [[ "${1}" == "--skip-groups" ]]; then # All groups processed, including primary group. - # Continuing script execution. - : + # Sync up buildscripts again and continue script execution. + "${HOME}/bin/slave-sync.sh" else echo "Script called with unknown parameters. Aborting." >&2 exit "1" @@ -68,8 +73,6 @@ else exit 1 fi -"${HOME}/bin/slave-sync.sh" - rm -f -- "slave.jar" # This comment is only for documentation - we're not using self-signed -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/buildscripts.git