mirror of
https://github.com/anjia0532/gcr.io_mirror.git
synced 2025-09-23 12:19:22 +08:00
Update deploy.sh
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user