From 78e3d9e5fbd5caec0e7799c0ce4a2eac1bb1c851 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Tue, 5 Aug 2025 16:14:59 +0800 Subject: [PATCH] fix: Enhance archive extraction command compatibility (#9860) Refs #9856 --- core/utils/files/files.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/utils/files/files.go b/core/utils/files/files.go index dfae19929..868ef2872 100644 --- a/core/utils/files/files.go +++ b/core/utils/files/files.go @@ -138,7 +138,7 @@ func HandleUnTar(sourceFile, targetDir string, secret string) error { commands = fmt.Sprintf("%s tar -zxvf - -C %s", extraCmd, targetDir+" > /dev/null 2>&1") global.LOG.Debug(strings.ReplaceAll(commands, fmt.Sprintf(" '%s' ", secret), " ****** ")) } else { - commands = fmt.Sprintf("tar zxvfC %s %s", sourceFile, targetDir) + commands = fmt.Sprintf("tar zxvf '%s' -C '%s'", sourceFile, targetDir) global.LOG.Debug(commands) }