subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
try: # 使用用户提供的快速安装脚本 install_cmd = "curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --no-skills" result = subprocess.run(install_cmd, shell=True, text=True) if result.returncode == 0: print(f"{Colors.GREEN}SkillHub CLI 部署成功{Colors.ENDC}") # 自动将本地路径加入当前进程环境,确保后续直接调用有效- Confidence
- 99% confidence
- Finding
- result = subprocess.run(install_cmd, shell=True, text=True)
