tweaks test

test
sean 7 years ago
parent f08d10d009
commit 9438c07e25

@ -1,9 +1,9 @@
#! /bin/bash #! /bin/bash
IFS=$'\n' #IFS=$'\n'
# fresh update on apt in Ubuntu # 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 apt-add-repository universe >/dev/null 2>/dev/null && apt update >/dev/null 2>/dev/null
if [ "$?" = "0" ]; then if [ "$?" = "0" ]; then
echo "Done." echo "Done."
@ -27,6 +27,7 @@ fi
width=`tput cols` width=`tput cols`
height=`tput lines` height=`tput lines`
window=$((height - 5)) window=$((height - 5))
# set line separator # set line separator
devices=""; for device in $(ls /dev/disk/by-id | grep -v part); do devices="$devices $device off"; done 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` disks=`dialog --separate-output --no-cancel --no-items --title "Root devices" --checklist "Select boot drives" $height $width ${window}$devices 2>&1 1>/dev/tty`

Loading…
Cancel
Save