fixed formatting issues in quickinfo

This commit is contained in:
pyr0ball 2023-08-11 01:11:40 -07:00
parent 5e505be426
commit f9a7cc57ac
3 changed files with 9 additions and 6 deletions

View file

@ -36,6 +36,9 @@ sys_packages=(
curl curl
python3 python3
python3-pip python3-pip
cmake
libgmp3-dev
libgtk-3-dev
) )
pip_packages=( pip_packages=(

View file

@ -56,7 +56,7 @@ globalinstalldir="/usr/share/prbl"
# Initialize arrays for file and dependency management # Initialize arrays for file and dependency management
bins_missing=() bins_missing=()
backupFiles=() backup_files=()
installed_files=() installed_files=()
installed_dirs=() installed_dirs=()

View file

@ -246,7 +246,7 @@ fi
# Check for release upgrade # Check for release upgrade
if [ -x /usr/lib/ubuntu-release-upgrader/release-upgrade-motd ]; then if [ -x /usr/lib/ubuntu-release-upgrader/release-upgrade-motd ]; then
if [ -f /var/lib/ubuntu-release-upgrader/release-upgrade-available ] ; then if [ -f /var/lib/ubuntu-release-upgrader/release-upgrade-available ] ; then
release_upgrade=$(cat /var/lib/ubuntu-release-upgrader/release-upgrade-available) release_upgrade="$(cat /var/lib/ubuntu-release-upgrader/release-upgrade-available)"
fi fi
fi fi
if [ "$(lsb_release -sd | cut -d ' ' -f4)" = "(development" ]; then if [ "$(lsb_release -sd | cut -d ' ' -f4)" = "(development" ]; then
@ -257,7 +257,7 @@ fi
# Check for fsck message # Check for fsck message
if [ -x /usr/lib/update-notifier/update-motd-fsck-at-reboot ]; then if [ -x /usr/lib/update-notifier/update-motd-fsck-at-reboot ]; then
fsck_needed=`exec /usr/lib/update-notifier/update-motd-fsck-at-reboot` fsck_needed="$(exec /usr/lib/update-notifier/update-motd-fsck-at-reboot)"
fi fi
################################ ################################
@ -327,10 +327,10 @@ boxline ""
for((i=0; i<"${#adapters[@]}"; i++ )); do for((i=0; i<"${#adapters[@]}"; i++ )); do
if [[ $show_disconnected != true ]] ; then if [[ $show_disconnected != true ]] ; then
if [[ ${ifups[$i]} == up ]] ; then if [[ ${ifups[$i]} == up ]] ; then
boxline " ${adapters[$i]}: ${cyn}${ips[$i]}${dfl}\t| ${blu}${macs[$i]}${dfl}" boxline " ${adapters[$i]}: ${cyn}${ips[$i]}${dfl} | ${blu}${macs[$i]}${dfl}"
fi fi
else else
boxline " ${adapters[$i]}: ${cyn}${ips[$i]}${dfl}\t| ${blu}${macs[$i]}${dfl}" boxline " ${adapters[$i]}: ${cyn}${ips[$i]}${dfl} | ${blu}${macs[$i]}${dfl}"
fi fi
done done
boxline " WAN IP: ${ylw}${wan_ip}${dfl}" boxline " WAN IP: ${ylw}${wan_ip}${dfl}"
@ -345,7 +345,7 @@ boxline " Memory used/total: ${mem_usage}"
boxline " ${unl}Disk Info:${dfl}" boxline " ${unl}Disk Info:${dfl}"
boxline "${unl}$(printf '\t|%-4s\t%-4s\t%-4s\t%-4s\n' Usage Free Mount Volumes)${dfl}" boxline "${unl}$(printf '\t|%-4s\t%-4s\t%-4s\t%-4s\n' Usage Free Mount Volumes)${dfl}"
for((i=0; i<"${#logicals[@]}"; i++ )); do for((i=0; i<"${#logicals[@]}"; i++ )); do
boxline "\t$(printf '|%-4s\t%-4s\t%-4s\t%-4s\n' ${usages[$i]} ${freespaces[$i]} ${mounts[$i]} ${logicals[$i]})" boxline " $(printf '|%-4s\t%-4s\t%-4s\t%-4s\n' ${usages[$i]} ${freespaces[$i]} ${mounts[$i]} ${logicals[$i]})"
done done
boxline "" boxline ""
if [[ "$need_updates" == "true" ]] ; then if [[ "$need_updates" == "true" ]] ; then