Update deploy.sh

This commit is contained in:
AnJia 2018-07-27 16:19:27 +08:00 committed by GitHub
parent d1a6f3da01
commit faf807843b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ function init_imgs()
# if this image dir not exits
[[ ! -d ${dir} ]] && mkdir -p ${dir};
echo ${gcr_content}
# create img tmp file,named by tag's name, set access's time,modify's time by this image manifest's timeUploadedMs
echo ${gcr_content} | jq -r '.manifest|to_entries[]|select(.value.tag|length>0)|{k: .key,t: .value.tag[0],v: .value.timeUploadedMs} | "tf=${dir}"+.t+".tmp;echo "+.k+">${tf};touch -amd \"$(date \"+%F %T\" -d @" + .v[0:10] +")\" ${tf}"' | while read i; do
eval $i