Update check_update.py

pull/26/head
Louis Vézina 7 years ago committed by GitHub
parent c0ce5362ea
commit 327a9f01b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,8 +4,8 @@ import os
import subprocess import subprocess
def check_and_apply_update(): def check_and_apply_update():
result = subprocess.check_output(["git", "pull", '--dry-run', 'origin', branch], stderr=subprocess.STDOUT, shell=True, cwd=os.path.join(os.path.dirname(__file__)).split('\n') result = subprocess.check_output(["git", "pull", '--dry-run', 'origin', branch], stderr=subprocess.STDOUT, shell=True, cwd=os.path.join(os.path.dirname(__file__))).split('\n')
if result[2] is not '': if result[2] is not '':
subprocess.check_output(["git", "pull", 'origin', branch], shell=True, cwd=os.path.join(os.path.dirname(__file__)) subprocess.check_output(["git", "pull", 'origin', branch], shell=True, cwd=os.path.join(os.path.dirname(__file__)))
os.execlp('python', 'python ' + os.path.join(os.path.dirname(__file__), 'bazarr.py')) os.execlp('python', 'python ' + os.path.join(os.path.dirname(__file__), 'bazarr.py'))

Loading…
Cancel
Save