You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
	
	
		
			18 lines
		
	
	
		
			430 B
		
	
	
	
		
			Plaintext
		
	
		
		
			
		
	
	
			18 lines
		
	
	
		
			430 B
		
	
	
	
		
			Plaintext
		
	
| 
								 
											4 years ago
										 
									 | 
							
								#!/bin/bash
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#shellcheck disable=SC2145
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
							 | 
						||
| 
								 | 
							
								red="\e[31m"
							 | 
						||
| 
								 | 
							
								normal="\e[0m"
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								function error() {
							 | 
						||
| 
								 | 
							
								  echo -e "${red}$1${normal}"
							 | 
						||
| 
								 | 
							
								  exit 1
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								echo -n "removing the terminal command and the script..."
							 | 
						||
| 
								 | 
							
								sudo rm -f /usr/local/bin/pi-apps || error "Failed to remove /usr/local/bin/pi-apps"
							 | 
						||
| 
								 | 
							
								rm -f "$HOME/pi-apps/pi-apps-terminal-bash-edition.sh"
							 | 
						||
| 
								 | 
							
								echo "done"
							 |