From f7771ad78a8c052baea98bafc8e15b3b47bd67c6 Mon Sep 17 00:00:00 2001 From: appeasementPolitik <108810900+appeasementPolitik@users.noreply.github.com> Date: Sat, 28 Jan 2023 14:31:01 +0000 Subject: [PATCH] True was on wrong line --- .local/bin/mounter | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.local/bin/mounter b/.local/bin/mounter index 6491b6ef..4f188f25 100755 --- a/.local/bin/mounter +++ b/.local/bin/mounter @@ -14,9 +14,9 @@ phones="$(simple-mtpfs -l 2>/dev/null | sed "s/^/📱/")" # Check for drives. alldrives="$(lsblk -rpo "uuid,name,type,size,label,mountpoint,fstype")" # Get all LUKS drives -allluks="$(echo "$alldrives" | grep crypto_LUKS)" +allluks="$(echo "$alldrives" | grep crypto_LUKS)" || true # Get a list of the LUKS drive UUIDs already decrypted. -decrypted="$(ls /dev/disk/by-id/dm-uuid-CRYPT-LUKS2-* | sed "s|.*LUKS2-||;s|-.*||")" || true +decrypted="$(ls /dev/disk/by-id/dm-uuid-CRYPT-LUKS2-* | sed "s|.*LUKS2-||;s|-.*||")" # Functioning for formatting drives correctly for dmenu: filter() { sed "s/ /:/g" | awk -F':' '$7==""{printf "%s%s (%s) %s\n",$1,$3,$5,$6}' ; }