From: Glenn Washburn Date: Mon, 3 Mar 2025 08:12:01 +0000 (-0600) Subject: tests/util/grub-shell-luks-tester: Add missing line to create RET variable in cleanup X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=50320c093abe29dfa5adc349529128425bade56a;p=thirdparty%2Fgrub.git tests/util/grub-shell-luks-tester: Add missing line to create RET variable in cleanup Set the RET variable to the exit status of the script, as was assumed in the cleanup() function. Reported-by: Thomas Schmitt Signed-off-by: Glenn Washburn Tested-by: Thomas Schmitt Reviewed-by: Daniel Kiper --- diff --git a/tests/util/grub-shell-luks-tester.in b/tests/util/grub-shell-luks-tester.in index 7cfb60b51..e695b9435 100644 --- a/tests/util/grub-shell-luks-tester.in +++ b/tests/util/grub-shell-luks-tester.in @@ -132,6 +132,7 @@ fi # Make sure that the dm-crypto device is shutdown cleanup() { + RET=$? if [ -e "$luksdev" ]; then cryptsetup close "$luksdev" fi