mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
lbmk: use x_ instead of err, where appropriate
many places in lbmk used err, because older versions of x_ did not handle globbing properly. however, use of x_ is preferable on trivial commands. the only time err() should be called is what it has to be, when x_ can't work, or when a more useful error message is needed, for context. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+1
-1
@@ -58,7 +58,7 @@ xbmkget()
|
||||
for url in "$1" "$2"; do
|
||||
[ "$dl_fail" = "n" ] && break
|
||||
[ -z "$url" ] && continue
|
||||
rm -f "$cached" || err "!rm -f '$cached'"
|
||||
x_ rm -f "$cached"
|
||||
if [ "$_dlop" = "curl" ]; then
|
||||
curl --location --retry 3 -A "$_ua" "$url" \
|
||||
-o "$cached" || wget --tries 3 -U "$_ua" "$url" \
|
||||
|
||||
Reference in New Issue
Block a user