install package function now checks to make sure repositories are synchronized.

This commit is contained in:
Storm Dragon 2021-10-18 21:10:07 -04:00
parent 280a36cb02
commit 1cce48b6c5
2 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,6 @@
install_package() {
# If for some reason we have to change AUR helpers, this function should make it easy to update everything all at once.
yay --needed --noconfirm -S "$@"
yay --needed --noconfirm -Sy "$@"
}
restart() {

View File

@ -39,10 +39,13 @@ while [[ "$choice" != "Exit" ]]; do
restart
;;
"Install Mate Desktop")
./.includes/gui.sh mate
source .includes/gui.sh mate
;;
"Install Ratpoison Windowmanager")
./.includes/gui.sh ratpoison
source .includes/gui.sh ratpoison
;;
"Set up gaming")
source .includes/gaming.sh
;;
esac
choice="$(menulist \