From f2be4fad32394f0f71a50fbd2728f10291eb9831 Mon Sep 17 00:00:00 2001 From: AngeD Date: Tue, 28 Mar 2023 18:34:45 +0200 Subject: [PATCH] feat: am refresh option --- bin/am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/am b/bin/am index 457a018..a68c8f1 100755 --- a/bin/am +++ b/bin/am @@ -51,11 +51,14 @@ while getopts a o; do done while true; do - #readarray -t LSBLK <<< "$(lsblk -n --paths | grep -v snap)" readarray -t LSBLK <<< "$(lsblk -n --paths --list | grep part)" COLUMNS=1 select dev in "${LSBLK[@]}"; do + if [ -z "$dev" ]; then + clear_output + break + fi name="$(cut -f1 -d' ' <<< "$dev")" clear_output