mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-20 04:32:41 +02:00
get.sh: stricter URL check in xbmkget()
don't skip if the URL is empty. throw an error instead. i decree that all links must be properly initialised, because that is the design of lbmk. where only one link is provided, such as in a local copy operation, the second would succeed no better than the first so two identical paths are given. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+1
-1
@@ -85,7 +85,7 @@ xbmkget()
|
|||||||
echk="f" && [ "$1" = "git" ] && echk="d"
|
echk="f" && [ "$1" = "git" ] && echk="d"
|
||||||
|
|
||||||
for url in "$2" "$3"; do
|
for url in "$2" "$3"; do
|
||||||
[ -n "$url" ] || continue
|
[ -n "$url" ] || err "empty URL given in: xbmkget $*"
|
||||||
try_file "$url" "$@" || continue
|
try_file "$url" "$@" || continue
|
||||||
eval "[ -$echk \"$4\" ] || continue"
|
eval "[ -$echk \"$4\" ] || continue"
|
||||||
return 0 # successful download/copy
|
return 0 # successful download/copy
|
||||||
|
|||||||
Reference in New Issue
Block a user