newapkbuild: allow -n option without url

This commit is contained in:
Natanael Copa 2020-04-14 13:53:10 +00:00
parent 3c45858fc0
commit 7779e913e7
1 changed files with 1 additions and 1 deletions

View File

@ -460,7 +460,7 @@ check_arguments() {
error "Unrecognized arguments: $*"
exit 1
fi
if ! is_url "$1" && [ -n "$pkgname" ]; then
if [ -n "$1" ] && ! is_url "$1" && [ -n "$pkgname" ]; then
error "-n is only allowed when using SRCURL as last argument"
exit 1
fi