diff options
author | Leah Rowe <leah@libreboot.org> | 2025-05-09 20:54:23 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-05-09 20:54:23 +0100 |
commit | 81dbde7e09f06c7f227fd0d78498df6e1c269f84 (patch) | |
tree | a3da8fe6888d2b226e86b4e13f254a03a7d7c116 /include/lib.sh | |
parent | 14d46abceda7a7ad6081b6ab321fb0efb4bc3325 (diff) |
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>
Diffstat (limited to 'include/lib.sh')
-rw-r--r-- | include/lib.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/lib.sh b/include/lib.sh index 99e59a1a..2f87e8b1 100644 --- a/include/lib.sh +++ b/include/lib.sh @@ -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" \ |