Enhance Zsh and Config Commands, Update Network Configuration
- Implemented comprehensive Zsh installation command with multiple network scenarios - Added 'config show' subcommand to display agent configuration - Updated version command to print version information - Modified Network configuration to clarify internet connectivity status - Improved download utility with additional file existence checks - Updated agent-wdd rules and documentation
This commit is contained in:
@@ -39,5 +39,10 @@ func DownloadFile(url string, path string) (bool, string) {
|
||||
return false, fmt.Sprintf("写入文件失败: %v", err)
|
||||
}
|
||||
|
||||
// 检查文件是否存在
|
||||
if !FileExistAndNotNull(path) {
|
||||
return false, fmt.Sprintf("文件下载失败: 文件为空 => %s", path)
|
||||
}
|
||||
|
||||
return true, fmt.Sprintf("文件下载成功: %s", path)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user