summaryrefslogtreecommitdiff
path: root/include/get.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-05-27 11:57:13 +0100
committerLeah Rowe <leah@libreboot.org>2025-05-27 11:57:13 +0100
commitaacd46bf812369710a0080b7e51f1a1c7d1ce9ee (patch)
treee4a05c126b812dc782e29a3684fcea988808692b /include/get.sh
parentdbf0fda39a78504e76d24e907db130b542cb286a (diff)
xbmk: simplify a few err calls
many of the messages are redundant, because errors caused by the commands they handle would produce similar messages. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/get.sh')
-rw-r--r--include/get.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/get.sh b/include/get.sh
index a3328454..4b31c7c9 100644
--- a/include/get.sh
+++ b/include/get.sh
@@ -106,8 +106,7 @@ try_file()
eval "[ -$echk \"$cached\" ] || return 1"
if [ "$2" = "git" ]; then
- [ -d "$5" ] || tmpclone "$cached" "$5" "$6" "$7" || \
- err "Can't clone final repo in command: try_file $*"; :
+ [ -d "$5" ] || tmpclone "$cached" "$5" "$6" "$7" || err; :
else
bad_checksum "$6" "$cached" && x_ rm -f "$cached" && return 1
[ "$cached" != "$5" ] && x_ cp "$cached" "$5"