mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-24 07:22:04 +08:00
clean git repo before neos update
This commit is contained in:
@@ -4,6 +4,7 @@ import sys
|
||||
import fcntl
|
||||
import errno
|
||||
import signal
|
||||
import subprocess
|
||||
|
||||
from common.basedir import BASEDIR
|
||||
sys.path.append(os.path.join(BASEDIR, "pyextra"))
|
||||
@@ -19,6 +20,8 @@ if __name__ == "__main__":
|
||||
copyfile(os.path.join(BASEDIR, "scripts", "continue.sh"), "/data/data/com.termux/files/continue.sh")
|
||||
|
||||
# run the updater
|
||||
print "Starting NEOS updater"
|
||||
subprocess.check_call(["git", "clean", "-xdf"], cwd=BASEDIR)
|
||||
os.system(os.path.join(BASEDIR, "installer", "updater", "updater"))
|
||||
raise Exception("NEOS outdated")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user