Fixed a bug in relative path detection

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

View File

@ -276,7 +276,7 @@ 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, ":\\") {
if !strings.HasPrefix(path, "/") && !strings.Contains(path, ":\\") {
return true
}
return false