From: Glenn Washburn Date: Mon, 3 Mar 2025 08:12:06 +0000 (-0600) Subject: tests/util/grub-shell: Remove the work directory on successful run and debug is not on X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1d59f39b5f1b407560ebf4d8f9bd45054a2c297c;p=thirdparty%2Fgrub.git tests/util/grub-shell: Remove the work directory on successful run and debug is not on This removes a lot of empty grub-shell working directories in the TMPDIR directory. Signed-off-by: Thomas Schmitt Signed-off-by: Glenn Washburn Tested-by: Thomas Schmitt Reviewed-by: Daniel Kiper --- diff --git a/tests/util/grub-shell.in b/tests/util/grub-shell.in index dae4ff35a..8baa3667a 100644 --- a/tests/util/grub-shell.in +++ b/tests/util/grub-shell.in @@ -715,6 +715,7 @@ test -n "$debug" || rm -f "${isofile}" test -n "$debug" || rm -rf "${rom_directory}" test -n "$debug" || rm -f "${tmpfile}" "${cfgfile}" "${goutfile}" test -n "$debug" || rm -f "$work_directory/run.sh" +test -n "$debug" || rmdir "$work_directory" exit $ret