formatting
This commit is contained in:
parent
22fef2de69
commit
402eee2e2b
1 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue