fix helmfile diff error in window platform

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero 2022-10-19 17:50:56 +08:00
parent 82f0d88d56
commit 62cbeb661d
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ func isLocalChart(chart string) bool {
return chart == "" ||
filepath.IsAbs(chart) ||
!strings.Contains(chart, fmt.Sprintf("%c", os.PathSeparator)) ||
!strings.Contains(chart, "/") ||
(len(strings.Split(chart, "/")) != 2 &&
len(strings.Split(chart, "/")) != 3)
}