LukeSmithxyz / voidrice

My dotfiles (deployed by LARBS)
GNU General Public License v3.0
4.27k stars 1.21k forks source link

none of the encrypted devices are listed if no drives are decrypted a… #1338

Closed poeplva closed 10 months ago

poeplva commented 1 year ago

…lready

The part

for open in $decrypted; do
        [ "$uuid" = "$open" ] && break 1
done

exits with 0 if the variable $decrypted is empty, causing none of the encrypted devices to be put into the $unopenedluks variable. This commit fixes this problem.