优化冗余代码

This commit is contained in:
ngfchl
2022-09-11 06:10:37 +08:00
parent 367a3b2d86
commit 7aa6cbe3b0
2 changed files with 2 additions and 2 deletions

View File

@@ -237,7 +237,7 @@ def do_update(request):
print('开始拉取更新')
# print(os.system('cat ./update.sh'))
subprocess.Popen('chmod +x ./update.sh', shell=True)
p = subprocess.Popen('./update.sh', shell=True, stdout=subprocess.PIPE, bufsize=1)
p = subprocess.Popen('./update.sh', shell=True, stdout=subprocess.PIPE)
p.wait()
out = p.stdout.readlines()
for i in out: