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))
|
ns=($(cat ./gcr_namespaces 2>/dev/null || echo google-containers))
|
||||||
readme=./gcr.io_mirror/README.md
|
readme=./gcr.io_mirror/README.md
|
||||||
export current_date=$(date +'%Y-%m-%d %H:%M')
|
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}"
|
echo -e "Mirror ${#ns[@]} namespaces image from gcr.io\n-----\n\n" >> "${readme}"
|
||||||
for n in ${ns[@]} ; do
|
for n in ${ns[@]} ; do
|
||||||
|
Reference in New Issue
Block a user