diff options
author | Leah Rowe <info@minifree.org> | 2024-08-11 21:19:04 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2024-08-11 21:22:23 +0100 |
commit | aae8cabe73675b0a2d15199ec5e1504837cd4080 (patch) | |
tree | 480447b420f7ef156303009dc70356e091ff24ec | |
parent | 3a5a1793796220938b6d4d56540abc86efdb8878 (diff) |
lib.sh: more verbose error in x_
part of the command was cut off in the output
Signed-off-by: Leah Rowe <info@minifree.org>
-rw-r--r-- | include/lib.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/lib.sh b/include/lib.sh index 2c9cd0d4..c5df639c 100644 --- a/include/lib.sh +++ b/include/lib.sh @@ -103,7 +103,8 @@ expr "X$XBMK_THREADS" : "X-\{0,1\}[0123456789][0123456789]*$" \ 1>/dev/null 2>/dev/null || export XBMK_THREADS=1 # user gave a non-integer x_() { - [ $# -lt 1 ] || $@ || $err "Unhandled non-zero exit: $@"; return 0 + [ $# -lt 1 ] || $@ || \ + $err "Unhandled non-zero exit: $(echo "$@")"; return 0 } [ -e ".git" ] || [ -f "version" ] || printf "unknown\n" > version || \ |