#!/bin/env bash TARGETDISK=$(lsblk -nrpo NAME,TYPE | grep ' disk' | awk '{print $1}' | gum choose) echo "You have selected: $TARGETDISK"