use column in get-updates script

This commit is contained in:
Daylin Morgan 2023-11-07 09:41:59 -06:00
parent ec98c87205
commit 0bc8d79146
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F

View file

@ -51,7 +51,6 @@ for opt in "$@"; do
-*)
echo "Invalid option: $opt"
usage
exit 1
;;
esac
done
@ -59,9 +58,9 @@ done
echo "fetching updates..."
echo
updates_arch="$(checkupdates 2>/dev/null | awk '{print $1}')"
updates_aur="$(paru -Qua 2>/dev/null | awk '{print $1}')"
updates_info="$(updates_output $notify)"
updates_arch="$(checkupdates 2>/dev/null | awk '{print $1}' | column)"
updates_aur="$(paru -Qua 2>/dev/null | awk '{print $1}' | column)"
updates_info="$(updates_output "$notify")"
if [[ -z $updates_info ]]; then
echo "system up to date"