1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2025-02-20 13:07:03 +00:00

Update check_update.py

This commit is contained in:
Louis Vézina 2017-11-09 16:02:27 -05:00 committed by GitHub
parent c0ce5362ea
commit 327a9f01b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,8 +4,8 @@ import os
import subprocess
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 '':
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'))