From 9611c19e7ed1be42c8da8228235d9626eb853acf Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 4 May 2025 16:03:34 +0100 Subject: init.sh: tidy up xbmk_child_exec() make the command style more consistent, for example relying on x_ inside a subshell to print the command and arguments if a command failed. this is a good style, and i'll probably use it in other places on lbmk. Signed-off-by: Leah Rowe --- include/init.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/init.sh b/include/init.sh index ce9cf9a9..e8ff6b63 100644 --- a/include/init.sh +++ b/include/init.sh @@ -204,8 +204,8 @@ xbmk_child_exec() { xbmk_rval=0 ( x_ ./mk "$@" ) || xbmk_rval=1 - rm -Rf "$xbmklocal" "$xbmktmp" || xbmk_rval=1 - rm -f lock || xbmk_rval=1 + ( x_ rm -Rf "$xbmklocal" "$xbmktmp" ) || xbmk_rval=1 + ( x_ rm -f lock ) || xbmk_rval=1 exit $xbmk_rval } -- cgit v1.2.1