mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-14 15:29:35 +02:00
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>
This commit is contained in:
+2
-4
@@ -45,8 +45,7 @@ trees()
|
||||
[ -z "$_f" ] && err "missing flag ($flags)"
|
||||
[ -z "$project" ] && fx_ "x_ ./mk $_f" x_ ls -1 config/git && return 1
|
||||
|
||||
[ -f "config/git/$project/pkg.cfg" ] || \
|
||||
err "config/git/$project/pkg.cfg missing"
|
||||
e "config/git/$project/pkg.cfg" f missing && err "$project: no pkg.cfg"
|
||||
|
||||
for d in "elf" "config/data" "config" "src"; do
|
||||
eval "${d#*/}dir=\"$d/$project\""
|
||||
@@ -187,8 +186,7 @@ check_project_hashes()
|
||||
[ "$pjhash" != "$old_pjhash" ] && badhash="y"
|
||||
[ -f "$XBMK_CACHE/hash/$project$tree" ] || badhash="y"
|
||||
|
||||
printf "%s\n" "$pjhash" > "$XBMK_CACHE/hash/$project$tree" || \
|
||||
err "!mk $XBMK_CACHE/hash/$project$tree"
|
||||
printf "%s\n" "$pjhash" > "$XBMK_CACHE/hash/$project$tree" || err
|
||||
|
||||
[ "$badhash" != "y" ] || x_ rm -Rf "src/$project/$tree" \
|
||||
"elf/$project/$tree" "elf/$project/$target"; :
|
||||
|
||||
Reference in New Issue
Block a user