Merge pull request #49 from samply/switchbranch

Switch branch to main
This commit is contained in:
Martin Lablans 2022-12-15 17:24:25 +01:00 committed by GitHub
commit ec32eb671a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -79,6 +79,15 @@ for DIR in /etc/bridgehead $(pwd); do
fi
done
if [ "$(git -C /srv/docker/bridgehead rev-parse --abbrev-ref HEAD)" == "feature/samplyBeam" ]; then
A="You are on branch feature/samplyBeam -- switching to main"
log "WARN" "$A"
report_error 70 "$A"
git -C /srv/docker/bridgehead fetch origin main:main
git -C /srv/docker/bridgehead checkout main
git_updated="true"
fi
# Check docker updates
log "INFO" "Checking for updates to running docker images ..."
docker_updated="false"