Fixed bug with updates on windows test repo name

dev
Ice3man 2021-07-25 03:37:05 +05:30 committed by GitHub
parent d53c903517
commit d5b19c6723
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 2 deletions

View File

@ -545,10 +545,17 @@ func updateNucleiVersionToLatest(verbose bool) error {
if verbose {
log.SetLevel(log.DebugLevel)
}
var command string
switch runtime.GOOS {
case "windows":
command = "nuclei.exe"
default:
command = "nuclei"
}
m := &update.Manager{
Command: "nuclei",
Command: command,
Store: &githubUpdateStore.Store{
Owner: "ehsandeep",
Owner: "projectdiscovery",
Repo: "nuclei",
Version: config.Version,
},