From 662fdfec9c391b13b9af9b67009e44d394bc97c9 Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期六, 30 五月 2020 17:32:54 +0800 Subject: [PATCH] fix UnTarGzByCmd --- service/SdkInstall.go | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/service/SdkInstall.go b/service/SdkInstall.go index 0fda033..e759454 100644 --- a/service/SdkInstall.go +++ b/service/SdkInstall.go @@ -1,7 +1,7 @@ package service import ( - "basic.com/dbapi.git" + //"basic.com/dbapi.git" "basic.com/valib/logger.git" "encoding/json" "errors" @@ -68,7 +68,8 @@ } unPackFilePath := configPatchPath+"/"+identifier+ext - err := util.UnTarGz(unPackFilePath, unPackPath) + logger.Debug("unPackFilePath:", unPackFilePath, "unPackPath:", unPackPath) + _,err := util.UnTarGzByCmd(unPackFilePath, unPackPath) if err !=nil { logger.Debug("UnPack err:",err,"unPackFile:",unPackFilePath) return false, err -- Gitblit v1.8.0