You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bazarr/check_update.py

10 lines
346 B

7 years ago
from get_general_settings import *
7 years ago
import os
import subprocess
7 years ago
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'))