Browse Source

[Update] Fetch before prefetch

andryyy 6 years ago
parent
commit
1db8317a6b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      update.sh

+ 1 - 0
update.sh

@@ -27,6 +27,7 @@ BRANCH=$(git rev-parse --abbrev-ref HEAD)
 
 
 function prefetch_images() {
 function prefetch_images() {
   [[ -z ${BRANCH} ]] && { echo -e "\e[33m\nUnknown branch...\e[0m"; exit 1; }
   [[ -z ${BRANCH} ]] && { echo -e "\e[33m\nUnknown branch...\e[0m"; exit 1; }
+  git fetch origin #${BRANCH}
   while read image; do
   while read image; do
     RET_C=0
     RET_C=0
     until docker pull ${image}; do
     until docker pull ${image}; do