formatting

This commit is contained in:
Daylin Morgan 2022-08-15 13:01:58 -05:00
parent 22fef2de69
commit 402eee2e2b

View file

@ -13,28 +13,28 @@ HELP
}
header() {
echo "============="
echo "============="
}
updates_output() {
notify=$1
if ! [[ -z $updates_arch ]]; then
header
header
echo "ARCH: $(echo "$updates_arch" | wc -l)"
header
header
[[ -z $notify ]] && echo "$updates_arch"
fi
if ! [[ -z $updates_aur ]]; then
header
header
echo "AUR: $(echo "$updates_aur" | wc -l)"
header
header
[[ -z $notify ]] && echo "$updates_aur"
fi
echo
}
update_system() {
echo
echo
read -p "Would you like to update? (y/N): " confirm && [[ $confirm == [yY] || $confirm == [yY][eE][sS] ]] || exit 1
pikaur -Syu --noedit --nodiff
}