13 lines
		
	
	
		
			407 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			407 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
| #! /usr/bin/bash
 | |
| 
 | |
| if [ -z $(which git 2>/dev/null) ]; then
 | |
|   printf "\n$(tput setaf 1)-- We didn't find git! Is it installed? --$(tput sgr0)\n\n"
 | |
|   printf "On Ubuntu and similar distros, git can be installed with the following command:\n"
 | |
|   printf "  $(tput setaf 2)sudo apt install git$(tput sgr0)\n\n"
 | |
|   printf "Please try again after installing git.\n\n"
 | |
| else
 | |
|   cd ~/.local/gpd-win3
 | |
|   git pull
 | |
|   cd -
 | |
| fi
 |