pull/26/head
Louis Vézina 7 years ago
parent 6c719b34b1
commit 2e3d306e84

@ -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'))

Loading…
Cancel
Save