Update deploy.sh

This commit is contained in:
AnJia 2018-07-23 14:48:09 +08:00 committed by GitHub
parent 33e9e2e7eb
commit 977d4f6fc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -132,6 +132,8 @@ function mirror()
cp ./gcr.io_mirror/CHANGES.md ./CHANGES1.md 2>/dev/null 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 {} \; find ./gcr.io_mirror/ -type f -name "*.md" -exec rm -rf {} \;
for img in ${images[@]} ; do for img in ${images[@]} ; do
@ -164,7 +166,7 @@ function commit()
done done
if [ -s CHANGES.md ]; then 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 fi
echo -e "${red} commit to github master" echo -e "${red} commit to github master"