Skip to content

Commit

Permalink
Merge pull request #14 from yrobla/master
Browse files Browse the repository at this point in the history
Do not query for file headers on disconnected install
  • Loading branch information
metal3-io-bot authored Feb 18, 2020
2 parents 22cf258 + 9e819db commit c53984c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion get-resource.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fi
if [ -e $FFILENAME.headers ] ; then
ETAG=$(awk '/ETag:/ {print $2}' $FFILENAME.headers | tr -d "\r")
cd $TMPDIR
curl -g --verbose --dump-header $FFILENAME.headers -O $IPA_BASEURI/$FFILENAME --header "If-None-Match: $ETAG"
curl -g --verbose --dump-header $FFILENAME.headers -O $IPA_BASEURI/$FFILENAME --header "If-None-Match: $ETAG" || cp /shared/html/images/$FFILENAME.headers .
# curl didn't download anything because we have the ETag already
# but we don't have it in the images directory
# Its in the cache, go get it
Expand Down

0 comments on commit c53984c

Please sign in to comment.