优化Harbor、Docker和Zsh安装流程,改进命令执行和文件操作
- 重构Harbor安装命令,改进容器检查和启动逻辑 - 修改Docker和DockerCompose安装方法,优化文件移动和权限设置 - 更新Zsh插件安装命令,简化git克隆过程 - 调整UnzipFile工具方法,支持更多压缩文件类型 - 修正Docker Daemon配置文件中的安装节标签 - 更新测试脚本,简化文件上传流程
This commit is contained in:
@@ -10,8 +10,10 @@ import (
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
// UnzipFile 解压文件, 支持zip和tar.gz
|
||||
// UnzipFile 解压文件, 支持zip tgz tar.gz tar
|
||||
func UnzipFile(zipFile string, targetFolder string) {
|
||||
log.Info("解压文件: %s, 到: %s", zipFile, targetFolder)
|
||||
|
||||
// 检查文件扩展名以确定解压缩方法
|
||||
fileExt := filepath.Ext(zipFile)
|
||||
switch fileExt {
|
||||
|
||||
Reference in New Issue
Block a user