install package function now checks to make sure repositories are synchronized.
This commit is contained in:
		@@ -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() {
 | 
			
		||||
 
 | 
			
		||||
@@ -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 \
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user