]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
tests/util/grub-shell-luks-tester: Add missing line to create RET variable in cleanup
authorGlenn Washburn <development@efficientek.com>
Mon, 3 Mar 2025 08:12:01 +0000 (02:12 -0600)
committerDaniel Kiper <daniel.kiper@oracle.com>
Wed, 26 Mar 2025 13:16:39 +0000 (14:16 +0100)
Set the RET variable to the exit status of the script, as was assumed in
the cleanup() function.

Reported-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-luks-tester.in

index 7cfb60b51e0dde109cda79362b7a6fd03e756c44..e695b943502bc5701602c1289c1ed960f0b2c002 100644 (file)
@@ -132,6 +132,7 @@ fi
 
 # Make sure that the dm-crypto device is shutdown
 cleanup() {
+    RET=$?
     if [ -e "$luksdev" ]; then
         cryptsetup close "$luksdev"
     fi