From faf807843b320252965e922bbd4c384fd3f9c50f Mon Sep 17 00:00:00 2001 From: AnJia Date: Fri, 27 Jul 2018 16:19:27 +0800 Subject: [PATCH] Update deploy.sh --- deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index 7674495..ee94e70 100644 --- a/deploy.sh +++ b/deploy.sh @@ -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