(feat): Fixed discord update
This commit is contained in:
		
							parent
							
								
									032501e80f
								
							
						
					
					
						commit
						67b528014d
					
				
					 3 changed files with 42 additions and 1 deletions
				
			
		
							
								
								
									
										
											BIN
										
									
								
								discord.tar.gz
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								discord.tar.gz
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										41
									
								
								installer.sh
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										41
									
								
								installer.sh
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,41 @@ | ||||||
|  | #!/bin/bash | ||||||
|  | 
 | ||||||
|  | # Check to see if Zenity is installed | ||||||
|  | if ! command -v zenity &> /dev/null; then | ||||||
|  | 	echo "Zenity is not installed. Please install it to use this script" | ||||||
|  | 	exit 1 | ||||||
|  | fi | ||||||
|  | 
 | ||||||
|  | # Display dialog to selection installation options | ||||||
|  | 
 | ||||||
|  | option=$(zenity --list \ | ||||||
|  | 				--title="Installer Options" \ | ||||||
|  | 				--text="Select one of the Options:" \ | ||||||
|  | 				--columm="Option" --column="Description" \ | ||||||
|  | 				"Option 1" "Install Discord" \ | ||||||
|  | 				"Option 2" "Update Discord" \ | ||||||
|  | 				"Option 3" "Configure dotfiles" \ | ||||||
|  | 				"Option 4" "Cancel") | ||||||
|  | 
 | ||||||
|  | # Check against selection | ||||||
|  | 
 | ||||||
|  | case "$option" in | ||||||
|  | 	"Option 1") | ||||||
|  | 		echo "Installing Discord..." | ||||||
|  | 		# Add discord install script | ||||||
|  | 		;; | ||||||
|  | 	"Option 2") | ||||||
|  | 		echo "Updating Discord..." | ||||||
|  | 		# Add Discord Update script | ||||||
|  | 		;; | ||||||
|  | 	"Option 3") | ||||||
|  | 		echo "Configuring dotfiles..." | ||||||
|  | 		# Add dotfiles script | ||||||
|  | 		;; | ||||||
|  | 	"Option 4") | ||||||
|  | 		echo "Exiting..." | ||||||
|  | 		;; | ||||||
|  | 	*) | ||||||
|  | 		echo "Invalid option. Exiting..." | ||||||
|  | 		;; | ||||||
|  | esac | ||||||
|  | @ -11,4 +11,4 @@ wget "https://discord.com/api/download?platform=linux&format=tar.gz" -O discord. | ||||||
| 
 | 
 | ||||||
| # Extract files to /opt directory | # Extract files to /opt directory | ||||||
| 
 | 
 | ||||||
| tar -xvf discord.tar.gz -C /opt/discord.tar.gz | tar -xvf discord.tar.gz -C /opt/Discord | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Blake Ridgway
						Blake Ridgway