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.
		
		
		
		
		
			
		
			
				
	
	
		
			22 lines
		
	
	
		
			491 B
		
	
	
	
		
			Bash
		
	
			
		
		
	
	
			22 lines
		
	
	
		
			491 B
		
	
	
	
		
			Bash
		
	
#!/bin/bash
 | 
						|
 | 
						|
DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
 | 
						|
 | 
						|
function error {
 | 
						|
  echo -e "\\e[91m$1\\e[39m"
 | 
						|
  exit 1
 | 
						|
}
 | 
						|
 | 
						|
source "${DIRECTORY}/api" || error "failed to source ${DIRECTORY}/api"
 | 
						|
 | 
						|
if [ "$arch" == 64 ];then
 | 
						|
  sudo apt purge sublime-text
 | 
						|
elif [ "$arch" == 32 ];then
 | 
						|
  rm -f ~/.local/share/applications/sublime-text.desktop
 | 
						|
  rm -rf ~/"Sublime Text 2"
 | 
						|
else
 | 
						|
  error "Failed to detect OS CPU architecture! Something is very wrong."
 | 
						|
fi
 | 
						|
 | 
						|
exit 0
 |