From 977d4f6fc3790c43f6dc1cd12bf6dd49757b13ae Mon Sep 17 00:00:00 2001 From: AnJia Date: Mon, 23 Jul 2018 14:48:09 +0800 Subject: [PATCH] Update deploy.sh --- deploy.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index f3f7240..7674495 100644 --- a/deploy.sh +++ b/deploy.sh @@ -132,6 +132,8 @@ function mirror() cp ./gcr.io_mirror/CHANGES.md ./CHANGES1.md 2>/dev/null + [[ ! -s ./CHANGES1.md ]] && touch ./CHANGES1.md + find ./gcr.io_mirror/ -type f -name "*.md" -exec rm -rf {} \; for img in ${images[@]} ; do @@ -164,7 +166,7 @@ function commit() done if [ -s CHANGES.md ]; then - (echo -e "## $(date +'%Y-%m-%d %H:%M') \n" && cat CHANGES.md && cat CHANGES1.md 2>/dev/null) >> gcr.io_mirror/CHANGES.md + (echo -e "## $(date +'%Y-%m-%d %H:%M') \n" && cat CHANGES.md 2>/dev/null&& cat CHANGES1.md 2>/dev/null) >> gcr.io_mirror/CHANGES.md fi echo -e "${red} commit to github master"