Set the RET variable to the exit status of the script, as was assumed in the cleanup() function.
Reported-by: Thomas Schmitt <scdbac...@gmx.net> Signed-off-by: Glenn Washburn <developm...@efficientek.com> --- tests/util/grub-shell-luks-tester.in | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/util/grub-shell-luks-tester.in b/tests/util/grub-shell-luks-tester.in index b2a8a91b41f2..855ad39c19c3 100644 --- a/tests/util/grub-shell-luks-tester.in +++ b/tests/util/grub-shell-luks-tester.in @@ -143,6 +143,7 @@ fi # Make sure that the dm-crypto device is shutdown cleanup() { + RET=$? if [ -e "$luksdev" ]; then cryptsetup close "$luksdev" fi -- 2.34.1 _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel