diff --git a/build__common.sh b/build__common.sh index f44905a..e1bae23 100644 --- a/build__common.sh +++ b/build__common.sh @@ -16,10 +16,14 @@ common_start() { detach='-d' fi - # ensure uses pilot-pangea branch + # ensure uses pilot-pangea branch and it is up to date ( cd ./IdHub - git checkout ${pilot} + if [ -d .git ]; then + #git checkout ${pilot} + git checkout main + git pull + fi ) # some pilots might use idhub1 and/or idhub2