mirror of
https://github.com/morpheus65535/bazarr
synced 2025-02-07 06:53:40 +00:00
parent
61f1fbb498
commit
45f5c0748e
1 changed files with 0 additions and 3 deletions
|
@ -5,10 +5,7 @@ import subprocess
|
|||
|
||||
def check_and_apply_update():
|
||||
result = subprocess.check_output(["git", "pull", '--dry-run', 'origin', branch], stderr=subprocess.STDOUT).split('\n')
|
||||
print result
|
||||
|
||||
if result[2] is not '':
|
||||
subprocess.check_output(["git", "pull", 'origin', branch])
|
||||
os.execlp('python', 'python ' + os.path.join(os.path.dirname(__file__), 'bazarr.py'))
|
||||
|
||||
check_and_apply_update()
|
||||
|
|
Loading…
Reference in a new issue