Reiteration on the fix
@@ -276,11 +276,11 @@ 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 true
+}
// resolvePath gets the absolute path to the template by either
// looking in the current directory or checking the nuclei templates directory.
