summaryrefslogtreecommitdiff
path: root/include/mrc.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-09-13 12:05:37 +0100
committerLeah Rowe <leah@libreboot.org>2025-09-13 12:09:55 +0100
commit7bed68f5b7096349bc8a6f48d2f4394db7a581af (patch)
tree37249555c9f147bdfddcad40f7036e465956253a /include/mrc.sh
parentedcf8cead8bc04bca1a29ad50acdb835c936cafd (diff)
lib.sh: use xprintf in err()
if more than one argument is provided, it is interpreted as a command, and the command is outputted. this means that now for example, where you have: ls -l foo | err "could not list directory" you could do: ls -l foo | err "could not list directory" "$@" this would show all the arguments given to the calling function that tried to run "ls" let's say that function was called bar, you might do: ls -l foo | err "could not list directory" bar "$@" right now, it's not easy to provide good debug info where err is used, unless it was called with x_, which provides the command/arguments that was bugging out. with this, we now have an easy and readable/maintainable way to do the same thing everywhere in xbmk. this will now be done, in a follow-up commit. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/mrc.sh')
0 files changed, 0 insertions, 0 deletions