Skip to content

Commit 8407917

Browse files
committed
Fix the update bug
1 parent 328611e commit 8407917

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

update.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,14 @@ do
3131
echo " "
3232
if [ "$answer" != "${answer#[Yy]}" ]; then
3333
echo -e "\n\e[92mUpdating ...\033[0m\n"
34-
sleep 1
35-
git config --global --add safe.directory /var/www/html/wizwizxui-timebot
34+
mv /var/www/html/wizwizxui-timebot/baseInfo.php /root/
35+
sleep 2
36+
# git config --global --add safe.directory /var/www/html/wizwizxui-timebot
3637
cd /var/www/html/wizwizxui-timebot
37-
git pull
38-
38+
# git pull
39+
git stash
40+
sleep 1
41+
mv /root/baseInfo.php /var/www/html/wizwizxui-timebot/
3942
if [ $? -ne 0 ]; then
4043
echo -e "\n\e[41mError: The update failed!\033[0m\n"
4144
exit 1

0 commit comments

Comments
 (0)