Update test

This commit is contained in:
Louis Vézina 2017-11-07 10:15:13 -05:00
parent 4d6beabfb8
commit 61f1fbb498
1 changed files with 3 additions and 0 deletions

View File

@ -5,7 +5,10 @@ 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()