diff --git a/deploy.sh b/deploy.sh index 92488d7..f3f7240 100644 --- a/deploy.sh +++ b/deploy.sh @@ -156,7 +156,7 @@ function commit() ns=($(cat ./gcr_namespaces 2>/dev/null || echo google-containers)) readme=./gcr.io_mirror/README.md export current_date=$(date +'%Y-%m-%d %H:%M') - envsubst < README.tpl >"${readme}" + cat README.tpl | envsubst '$user_name $current_date' > "${readme}" echo -e "Mirror ${#ns[@]} namespaces image from gcr.io\n-----\n\n" >> "${readme}" for n in ${ns[@]} ; do @@ -203,4 +203,4 @@ do done sleep 120 -echo "${red} bye bye" \ No newline at end of file +echo "${red} bye bye"