mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-05-22 07:01:49 +00:00
Fix URL argument validation when using the -update-site CLI option.
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user