1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-15 22:49:13 +00:00

Move from drone to GHA for rke 1.5 (#3615)

This commit is contained in:
mitulshah-suse
2024-07-03 03:50:52 +05:30
committed by GitHub
parent 901cb5a1fd
commit 6958487e50
9 changed files with 223 additions and 248 deletions

View File

@@ -134,13 +134,14 @@ func GetTagMajorVersion(tag string) string {
}
func IsFileExists(filePath string) (bool, error) {
if _, err := os.Stat(filePath); err == nil {
var err error
if _, err = os.Stat(filePath); err == nil {
return true, nil
} else if os.IsNotExist(err) {
return false, nil
} else {
return false, err
}
if os.IsNotExist(err) {
return false, nil
}
return false, err
}
func GetDefaultRKETools(image string) (string, error) {