Spaces:
Paused
Paused
Auto-update co 30s + self-restart v5
Browse files- au.version +1 -1
- termux_autoupdate.sh +1 -1
au.version
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
5
|
termux_autoupdate.sh
CHANGED
|
@@ -14,7 +14,7 @@ while true; do
|
|
| 14 |
LOCAL_VER=$(cat au.version)
|
| 15 |
pkill -f "python bot.py" 2>/dev/null
|
| 16 |
screen -dmS bot python bot.py
|
| 17 |
-
|
| 18 |
fi
|
| 19 |
|
| 20 |
sleep 30
|
|
|
|
| 14 |
LOCAL_VER=$(cat au.version)
|
| 15 |
pkill -f "python bot.py" 2>/dev/null
|
| 16 |
screen -dmS bot python bot.py
|
| 17 |
+
exec bash "$0"
|
| 18 |
fi
|
| 19 |
|
| 20 |
sleep 30
|