]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
tests/util/grub-shell: Remove the work directory on successful run and debug is not on
authorGlenn Washburn <development@efficientek.com>
Mon, 3 Mar 2025 08:12:06 +0000 (02:12 -0600)
committerDaniel Kiper <daniel.kiper@oracle.com>
Wed, 26 Mar 2025 13:30:56 +0000 (14:30 +0100)
This removes a lot of empty grub-shell working directories in the TMPDIR directory.

Signed-off-by: Thomas Schmitt <scdbackup@gmx.net>
Signed-off-by: Glenn Washburn <development@efficientek.com>
Tested-by: Thomas Schmitt <scdbackup@gmx.net>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
tests/util/grub-shell.in

index dae4ff35a3e79edd97c57dc7fe040365ee8513e5..8baa3667ae2b0c8591e95ac54043d86ac1926b5f 100644 (file)
@@ -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