Skip to content

Commit

Permalink
clean git repo before neos update
Browse files Browse the repository at this point in the history
  • Loading branch information
pd0wm authored and klaus385 committed Dec 25, 2018
1 parent b42e18b commit 7ef3d1c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions selfdrive/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import fcntl
import errno
import signal
import subprocess

from common.basedir import BASEDIR
sys.path.append(os.path.join(BASEDIR, "pyextra"))
Expand All @@ -19,6 +20,8 @@
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")

Expand Down

0 comments on commit 7ef3d1c

Please sign in to comment.