File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -560,10 +560,14 @@ if [ "$IMPORT_DISKS" == "yes" ]; then
560560 SCSI_NR=0
561561
562562 while read -r LSOUTPUT; do
563- DISKARRAY+=(" $LSOUTPUT " " " " OFF" )
563+ TRUNCATED=" ${LSOUTPUT: 0: 45} "
564+ if [ ${# LSOUTPUT} -gt 45 ]; then
565+ TRUNCATED=" ${TRUNCATED} ..."
566+ fi
567+ DISKARRAY+=(" $LSOUTPUT " " $TRUNCATED " " OFF" )
564568 done < <( ls /dev/disk/by-id | grep -E ' ^ata-|^nvme-|^usb-' | grep -v ' part' )
565569
566- SELECTIONS=$( whiptail --backtitle " Proxmox VE Helper Scripts" --title " SELECT DISKS TO IMPORT" --checklist " \nSelect disk IDs to import. (Use Spacebar to select)\n" --cancel-button " Exit Script" 20 58 10 " ${DISKARRAY[@]} " 3>&1 1>&2 2>&3 | tr -d ' "' ) || exit
570+ SELECTIONS=$( whiptail --backtitle " Proxmox VE Helper Scripts" --title " SELECT DISKS TO IMPORT" --checklist " \nSelect disk IDs to import. (Use Spacebar to select)\n" --notags -- cancel-button " Exit Script" 20 58 10 " ${DISKARRAY[@]} " 3>&1 1>&2 2>&3 | tr -d ' "' ) || exit
567571
568572 for SELECTION in $SELECTIONS ; do
569573 (( ++ SCSI_NR))
You can’t perform that action at this time.
0 commit comments