tweaks test

This commit is contained in:
sean
2019-07-09 13:29:16 -07:00
parent f08d10d009
commit 9438c07e25
+3 -2
View File
@@ -1,9 +1,9 @@
#! /bin/bash
IFS=$'\n'
#IFS=$'\n'
# fresh update on apt in Ubuntu
echo "Updating and upgrading local packages..."
echo "Updating local packages..."
apt-add-repository universe >/dev/null 2>/dev/null && apt update >/dev/null 2>/dev/null
if [ "$?" = "0" ]; then
echo "Done."
@@ -27,6 +27,7 @@ fi
width=`tput cols`
height=`tput lines`
window=$((height - 5))
# set line separator
devices=""; for device in $(ls /dev/disk/by-id | grep -v part); do devices="$devices $device off"; done
disks=`dialog --separate-output --no-cancel --no-items --title "Root devices" --checklist "Select boot drives" $height $width ${window}$devices 2>&1 1>/dev/tty`