Fix URL argument validation when using the -update-site CLI option.

This commit is contained in:
miyuko
2025-09-30 21:54:08 +01:00
parent f0805c9ff5
commit d5a4ac4098

View File

@@ -164,7 +164,7 @@ func main() {
}
sourceURL, _ := url.Parse(flag.Arg(0))
if sourceURL == (&url.URL{}) {
if sourceURL == nil || *sourceURL == (url.URL{}) {
log.Fatalln("update source must be provided as an argument")
}