fix: to check encrypted drives amount (#5515)

This commit is contained in:
Danila Danilin
2026-04-30 20:14:01 +02:00
committed by GitHub
parent 6ab4196985
commit 710356e900
+1 -1
View File
@@ -5,7 +5,7 @@
encrypted_drives=$(blkid -t TYPE=crypto_LUKS -o device)
if [[ -n $encrypted_drives ]]; then
if (( $(wc -l <<<encrypted_drives) == 1 )); then
if (( $(wc -l <<<"$encrypted_drives") == 1 )); then
drive_to_change="$encrypted_drives"
else
drive_to_change="$(omarchy-drive-select "$encrypted_drives")"