mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-22 14:47:52 +08:00
Test
This commit is contained in:
parent
45f5c0748e
commit
7725f2bccd
1 changed files with 2 additions and 2 deletions
|
@ -4,8 +4,8 @@ import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
def check_and_apply_update():
|
def check_and_apply_update():
|
||||||
result = subprocess.check_output(["git", "pull", '--dry-run', 'origin', branch], stderr=subprocess.STDOUT).split('\n')
|
result = subprocess.check_output(["git", "pull", '--dry-run', 'origin', branch], stderr=subprocess.STDOUT, shell=True).split('\n')
|
||||||
|
|
||||||
if result[2] is not '':
|
if result[2] is not '':
|
||||||
subprocess.check_output(["git", "pull", 'origin', branch])
|
subprocess.check_output(["git", "pull", 'origin', branch], shell=True)
|
||||||
os.execlp('python', 'python ' + os.path.join(os.path.dirname(__file__), 'bazarr.py'))
|
os.execlp('python', 'python ' + os.path.join(os.path.dirname(__file__), 'bazarr.py'))
|
||||||
|
|
Loading…
Reference in a new issue