summaryrefslogtreecommitdiff
path: root/include/get.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-09-26 00:09:46 +0100
committerLeah Rowe <leah@libreboot.org>2025-09-26 00:09:46 +0100
commite42cb4f4cd513f512397ff7a46b6174b39a9708e (patch)
treeab6ba25c737cfa17ed6bc6eb9e1c4f5419ff892b /include/get.sh
parentf5060232e16ab1c041f0108a5f65d8f96f79756d (diff)
xbmk: tidy up some if statements
this is an extension of the previous work to unroll most of the condensed code lines. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/get.sh')
-rw-r--r--include/get.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/get.sh b/include/get.sh
index cd5d0960..d5be5a73 100644
--- a/include/get.sh
+++ b/include/get.sh
@@ -28,7 +28,6 @@ fetch_project()
if [ -n "$xtree" ]; then
x_ ./mk -f coreboot "$xtree"
fi
-
if [ -n "$depend" ]; then
for d in $depend ; do
x_ ./mk -f $d
@@ -118,9 +117,7 @@ xbget()
do
if [ -z "$url" ]; then
err "empty URL given in" "xbget" "$@"
- fi
-
- if ! try_file "$url" "$@"; then
+ elif ! try_file "$url" "$@"; then
continue
fi