summaryrefslogtreecommitdiff
path: root/ar/.local/bin/setfirmware
diff options
context:
space:
mode:
Diffstat (limited to 'ar/.local/bin/setfirmware')
-rwxr-xr-xar/.local/bin/setfirmware2
1 files changed, 1 insertions, 1 deletions
diff --git a/ar/.local/bin/setfirmware b/ar/.local/bin/setfirmware
index 4c4dad1..dde4d58 100755
--- a/ar/.local/bin/setfirmware
+++ b/ar/.local/bin/setfirmware
@@ -5,7 +5,7 @@ drive=$(lsblk | grep -E '3[0-9].*M' | cut -d' ' -f1)
drive="/dev/$drive"
printf "\n%s\n" "Target drive: $drive"
firmwarepath="${XDG_CONFIG_HOME:-${HOME}/.config}/glove80"
-firmware="$(find "$firmwarepath" -type f -iname '*.uf2' | fzf --prompt "Choose a firmware: ")"
+firmware="$(find "$firmwarepath" \( -type f -o -type l \) -iname '*.uf2' | fzf --prompt "Choose a firmware: ")"
mp="/media/$USER/firmware"
[ -d "$mp" ] || mkdir -p "$mp"
sudo -A mount "$drive" "$mp"