diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index ca04003..eaed6df 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -63,7 +63,7 @@ _prompt_from_array() { if [[ -z "$REPLY" && -n "$_default_index" ]]; then _selected_index="$_default_index" break - elif [[ -n "$REPLY" && 0 -le "$REPLY" && "$REPLY" -le $_N ]]; then + elif [[ "$REPLY" =~ ^[0-9]+$ && 0 -le "$REPLY" && "$REPLY" -le $_N ]]; then _selected_index="$REPLY" break else