mirror of https://github.com/daffainfo/nuclei.git
Fixed bug with updates on windows test repo name
parent
d53c903517
commit
d5b19c6723
|
@ -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,
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue