feat: am refresh option

This commit is contained in:
AngeD 2023-03-28 18:34:45 +02:00
parent e99889674c
commit f2be4fad32

5
bin/am
View File

@ -51,11 +51,14 @@ while getopts a o; do
done done
while true; do while true; do
#readarray -t LSBLK <<< "$(lsblk -n --paths | grep -v snap)"
readarray -t LSBLK <<< "$(lsblk -n --paths --list | grep part)" readarray -t LSBLK <<< "$(lsblk -n --paths --list | grep part)"
COLUMNS=1 COLUMNS=1
select dev in "${LSBLK[@]}"; do select dev in "${LSBLK[@]}"; do
if [ -z "$dev" ]; then
clear_output
break
fi
name="$(cut -f1 -d' ' <<< "$dev")" name="$(cut -f1 -d' ' <<< "$dev")"
clear_output clear_output