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