cuio commited on
Commit
1b6959a
·
verified ·
1 Parent(s): 5b26c0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -3,7 +3,7 @@ import subprocess
3
  # 定义 shell 脚本的路径
4
  script_path = '/home/user/app/a.sh'
5
 
6
- # 使用 subprocess.run 来运行 shell 脚本
7
  result = subprocess.run(['bash', script_path], capture_output=True, text=True)
8
 
9
  # 打印输出和错误
 
3
  # 定义 shell 脚本的路径
4
  script_path = '/home/user/app/a.sh'
5
 
6
+ # 使用 subprocess.run 来运行 shell
7
  result = subprocess.run(['bash', script_path], capture_output=True, text=True)
8
 
9
  # 打印输出和错误