Browse Source

fix(common): change dir before pulling latest from git

pull/35/head
Tom Hiller 6 years ago
parent
commit
0a95686120
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      common/download_coreboot.sh

+ 8
- 1
common/download_coreboot.sh View File

@ -36,6 +36,7 @@ function gitUpdate() {
##
################################################################################
function checkoutTag() {
cd "$DOCKER_COREBOOT_DIR" || exit
git checkout tags/"$COREBOOT_TAG" || exit
git submodule update --recursive --remote
}
@ -47,8 +48,14 @@ function checkoutTag() {
##
################################################################################
function checkoutCommit() {
#edge should checkout master
cd "$DOCKER_COREBOOT_DIR" || exit
# bleeding-edge should checkout master
git checkout "$COREBOOT_COMMIT" || exit
if [ "$COREBOOT_COMMIT" == "master" ]; then
git pull --all
fi
git submodule update --recursive --remote
}
################################################################################


Loading…
Cancel
Save