mirror of
https://github.com/beclab/Olares
synced 2026-05-24 01:08:23 +00:00
cli: windows username contains spaces (#2124)
fix: windows username contains spaces
This commit is contained in:
parent
a282878cfe
commit
ca1d7ebd09
1 changed files with 2 additions and 2 deletions
|
|
@ -78,7 +78,7 @@ func (i *InstallAppxPackage) Execute(runtime connector.Runtime) error {
|
|||
wslAppxPackage := wslAppxPackageObj.(*files.KubeBinary)
|
||||
|
||||
var ps = &utils.PowerShellCommandExecutor{
|
||||
Commands: []string{fmt.Sprintf("Add-AppxPackage %s -ForceUpdateFromAnyVersion", wslAppxPackage.Path())},
|
||||
Commands: []string{fmt.Sprintf("Add-AppxPackage \"%s\" -ForceUpdateFromAnyVersion", wslAppxPackage.Path())},
|
||||
}
|
||||
|
||||
if _, err := ps.Run(); err != nil {
|
||||
|
|
@ -216,7 +216,7 @@ func (i *InstallWSLDistro) Execute(runtime connector.Runtime) error {
|
|||
logger.Infof("%s path: %s", ubuntuTool, installerPath)
|
||||
|
||||
var checkInstallerPs = &utils.PowerShellCommandExecutor{
|
||||
Commands: []string{fmt.Sprintf("Test-Path %s", installerPath)},
|
||||
Commands: []string{fmt.Sprintf("Test-Path \"%s\"", installerPath)},
|
||||
}
|
||||
installerExists, err := checkInstallerPs.Run()
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue