Skip to content

Commit

Permalink
Fix windows tests (#1544)
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Chico de Guzman <pchico83@gmail.com>
  • Loading branch information
pchico83 committed May 18, 2021
1 parent b438a3b commit c585f14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/k8s/deployments/translate.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"encoding/json"
"fmt"
"os"
"path/filepath"
"path"
"strings"

okLabels "github.com/okteto/okteto/pkg/k8s/labels"
Expand Down Expand Up @@ -601,7 +601,7 @@ func TranslateOktetoInitFromImageContainer(spec *apiv1.PodSpec, rule *model.Tran
SubPath: v.SubPath,
},
)
mounPath := filepath.Join(v.MountPath, ".")
mounPath := path.Join(v.MountPath, ".")
command = fmt.Sprintf("%s && (cp -Rv %s/. /init-volume/%d || true)", command, mounPath, iVolume)
iVolume++
}
Expand Down

0 comments on commit c585f14

Please sign in to comment.