Advertisement
Guest User

Untitled

a guest
Mar 7th, 2021
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. #! /bin/bash
  2. ALL=$(yay -Qu | sed 's/\x1b\[[0-9;]*m//g' | sed 's/->//g' | sed 's/^/TRUE /g')
  3. UPDATE=$(zenity --list \
  4. --width=500 --height=400 \
  5. --text="Select updates to install:" \
  6. --checklist \
  7. --separator=" " \
  8. --title="The following pacakges are outdated" \
  9. --column="Update" --column="Package Name" --column="Previous Version" --column="Current Version" \
  10. $ALL)
  11. if [[ -z "${UPDATE// }" ]]
  12. then
  13. exit 1
  14. else
  15. RESULT=$(alacritty -t package-update -e "yay -S --noconfirm $UPDATE")
  16. fi
  17. echo "Requesting Update: $UPDATE"
  18. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement