Reiteration on the fix

dev
Ice3man543 2020-06-29 18:03:02 +05:30
parent fc3d3ff3d3
commit aa9379479b
1 changed files with 3 additions and 3 deletions

View File

@ -276,10 +276,10 @@ func (r *Runner) downloadReleaseAndUnzip(downloadURL string) error {
// isRelative checks if a given path is a relative path
func (r *Runner) isRelative(path string) bool {
if !strings.HasPrefix(path, "/") && !strings.Contains(path, ":\\") {
return true
if strings.HasPrefix(path, "/") || strings.Contains(path, ":\\") {
return false
}
return false
return true
}
// resolvePath gets the absolute path to the template by either