mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-03-10 22:27:28 +00:00
newapkbuild: allow -n option without url
This commit is contained in:
parent
3c45858fc0
commit
7779e913e7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user