Update WIP

This commit is contained in:
Louis Vézina 2017-11-06 23:53:31 -05:00
parent 6c719b34b1
commit 2e3d306e84
1 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,9 @@
from get_general_settings import *
import git
import os
import subprocess
print subprocess.check_output(["git", "pull", '--dry-run', '--quiet', 'origin', branch], stderr=subprocess.STDOUT)
result = subprocess.check_output(["git", "pull", '--dry-run', 'origin', branch], stderr=subprocess.STDOUT).split('\n')
if len(result) > 2:
subprocess.check_output(["git", "pull", 'origin', branch])
os.execlp('python', os.path.join(os.path.dirname(__file__), 'bazarr.py'))