Update main.py
Browse files
main.py
CHANGED
|
@@ -25,6 +25,7 @@ def install_aria2():
|
|
| 25 |
print("aria2c 未安装,正在尝试自动安装...")
|
| 26 |
if 'ubuntu' in subprocess.check_output(['lsb_release', '-i']).decode().lower():
|
| 27 |
os.system('sudo apt-get install aria2 -y')
|
|
|
|
| 28 |
elif 'centos' in subprocess.check_output(['cat', '/etc/redhat-release']).decode().lower():
|
| 29 |
os.system('sudo yum install aria2 -y')
|
| 30 |
elif 'arch' in subprocess.check_output(['cat', '/etc/os-release']).decode().lower():
|
|
|
|
| 25 |
print("aria2c 未安装,正在尝试自动安装...")
|
| 26 |
if 'ubuntu' in subprocess.check_output(['lsb_release', '-i']).decode().lower():
|
| 27 |
os.system('sudo apt-get install aria2 -y')
|
| 28 |
+
print("aria2c 安装成功")
|
| 29 |
elif 'centos' in subprocess.check_output(['cat', '/etc/redhat-release']).decode().lower():
|
| 30 |
os.system('sudo yum install aria2 -y')
|
| 31 |
elif 'arch' in subprocess.check_output(['cat', '/etc/os-release']).decode().lower():
|