Skip to content

Commit

Permalink
Add missing Arch update script πŸ”„
Browse files Browse the repository at this point in the history
  • Loading branch information
elamperti committed Jan 26, 2024
1 parent 8c0c5e2 commit d050438
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions bin/arch-updates.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

if command -v "yay"; then
# Makes yay update and download new packages without installing them
# --noconfirm makes it non-interactive
# --sudo="true" replaces any unneeded sudo request with a call to true (noop)
yay -Syuw --noconfirm --sudo="true"

# Launch pamac-tray to notify the user if there's any update
# ToDo: check if pamac-tray exists,
# ToDo: otherwise check prev cmd exit code and use notify-send
pamac-tray &>/dev/null
else
exit 1
fi

0 comments on commit d050438

Please sign in to comment.