Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- ALL=$(yay -Qu | sed 's/\x1b\[[0-9;]*m//g' | sed 's/->//g' | sed 's/^/TRUE /g')
- UPDATE=$(zenity --list \
- --width=500 --height=400 \
- --text="Select updates to install:" \
- --checklist \
- --separator=" " \
- --title="The following pacakges are outdated" \
- --column="Update" --column="Package Name" --column="Previous Version" --column="Current Version" \
- $ALL)
- if [[ -z "${UPDATE// }" ]]
- then
- exit 1
- else
- RESULT=$(alacritty -t package-update -e "yay -S --noconfirm $UPDATE")
- fi
- echo "Requesting Update: $UPDATE"
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement