diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2023-06-18 21:17:13 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2023-06-18 21:17:13 +0300 |
commit | e1bd96fb8858546f781a40678145cf5986d83aa0 (patch) | |
tree | b7e1d2012051d1b91d40a460e224427f09ee3d58 | |
parent | 4a50101176ee69a08a47f8a912505dc0af310b62 (diff) | |
download | swayrice-e1bd96fb8858546f781a40678145cf5986d83aa0.tar.gz swayrice-e1bd96fb8858546f781a40678145cf5986d83aa0.zip |
fix: menublk: fs type check
Silly me, forgot placeholder for udevadm command.
-rwxr-xr-x | dotfiles/.local/bin/menublk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dotfiles/.local/bin/menublk b/dotfiles/.local/bin/menublk index ec5bca5..5f3be68 100755 --- a/dotfiles/.local/bin/menublk +++ b/dotfiles/.local/bin/menublk @@ -54,8 +54,8 @@ get_unmountable() { } mount_dev() { - fstype="$(udevadm info -x /dev/sdd1 | grep FS_TYPE | cut -d '=' -f2)" part="/dev/$1" + fstype="$(udevadm info -x $part | grep FS_TYPE | cut -d '=' -f2)" if [ "$fstype" = "crypto_LUKS" ]; then password="$(echo "" | rofi -dmenu -password -p "Enter passphrase for encrypted drive" --tf="$BEMENU_TF" --tb="$BEMENU_NB" --ff="$BEMENU_NB" --fb="$BEMENU_NB" --fn="$BEMENU_FN" --nb="$BEMENU_NB" --nf="$BEMENU_NF" --hf="$BEMENU_HF" --hb="$BEMENU_HB" --monitor="$BEMENU_MONITOR")" if [ -z "$password" ]; then |