mirror of
https://github.com/anjia0532/gcr.io_mirror.git
synced 2025-09-23 12:19:22 +08:00
escape character for envsubst
escape character for envsubst
This commit is contained in:
@@ -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"
|
||||
echo "${red} bye bye"
|
||||
|
Reference in New Issue
Block a user