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.
		
		
		
		
		
			
		
			
				
	
	
		
			24 lines
		
	
	
		
			865 B
		
	
	
	
		
			Bash
		
	
			
		
		
	
	
			24 lines
		
	
	
		
			865 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
 | 
						|
}
 | 
						|
 | 
						|
cd $HOME
 | 
						|
mkdir ~/tmp
 | 
						|
cd tmp || error "Failed to enter $HOME/tmp directory!"
 | 
						|
wget https://fontsdata.com/zipdown-segoeuiemoji-132714.htm || error "Failed to download Segoe UI Emoji font!"
 | 
						|
wget https://noto-website.storage.googleapis.com/pkgs/NotoColorEmoji-unhinted.zip || error "Failed to download Noto Color Emoji font!"
 | 
						|
mv zipdown-segoeuiemoji-132714.htm segoeuiemoji.zip
 | 
						|
unzip segoeuiemoji.zip || error "Failed to extract Segoe UI Emoji font!"
 | 
						|
unzip NotoColorEmoji-unhinted.zip || error "Failed to extract Noto Color Emoji font!"
 | 
						|
mkdir -p ~/.fonts &>/dev/null
 | 
						|
mv seguiemj.ttf "~/.fonts/Segoe UI.ttf"
 | 
						|
mv NotoColorEmoji.ttf "~/.fonts/Noto Color Emoji.ttf"
 | 
						|
fc-cache -f -v &>/dev/null
 | 
						|
rm -r ~/tmp
 | 
						|
cd $HOME
 |