diff --git a/bin/upgrade.sh b/bin/upgrade.sh index 2608978..be126c5 100755 --- a/bin/upgrade.sh +++ b/bin/upgrade.sh @@ -58,6 +58,12 @@ if [ -f "master.tar.gz" ]; then tar -zxvf master.tar.gz rm -f master.tar.gz + + # 兼容gitcode的tar包解压后目录为:machete-master/ + if [ -d machete-master/ ]; then + mv machete-master/ machete/ + fi + rsync -vrL machete/* /var/www/machete/ \ --exclude=www/content/ \ --exclude=www/navs/ \