mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-09-06 06:35:13 +08:00
fix: Enhance archive extraction command compatibility (#9860)
Refs #9856
This commit is contained in:
parent
d74b41a5f2
commit
78e3d9e5fb
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue