summaryrefslogtreecommitdiffstats
path: root/.local/bin/mounter
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2023-10-28 08:41:43 -0400
committerLuke Smith <luke@lukesmith.xyz>2023-10-28 08:41:43 -0400
commit0cc589bcadf5a8ce6aee2706e749fee878ccca75 (patch)
tree8cbd17151ea65bcaf73085899917ac66d1360122 /.local/bin/mounter
parent6ba48b27339d47732519476333712bb4b2cde87f (diff)
parent1e3adf9c03b2e563e81a13d6907ffd5ca20b887a (diff)
downloadeibhear-0cc589bcadf5a8ce6aee2706e749fee878ccca75.tar.gz
eibhear-0cc589bcadf5a8ce6aee2706e749fee878ccca75.tar.zst
eibhear-0cc589bcadf5a8ce6aee2706e749fee878ccca75.zip
Merge branch 'master' of github.com:LukeSmithxyz/voidrice
Diffstat (limited to '.local/bin/mounter')
-rwxr-xr-x.local/bin/mounter2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/mounter b/.local/bin/mounter
index b532e08..756d04d 100755
--- a/.local/bin/mounter
+++ b/.local/bin/mounter
@@ -36,7 +36,7 @@ filter() { sed "s/ /:/g" | awk -F':' '$7==""{printf "%s%s (%s) %s\n",$1,$3,$5,$6
unopenedluks="$(for drive in $allluks; do
uuid="${drive%% *}"
uuid="${uuid//-}" # This is a bashism.
- for open in $decrypted; do
+ [ -n "$decrypted" ] && for open in $decrypted; do
[ "$uuid" = "$open" ] && break 1
done && continue 1
echo "🔒 $drive"