Compare commits
	
		
			2 Commits
		
	
	
		
			9433857356
			...
			92053400a3
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 92053400a3 | |||
| decdef3066 | 
@ -59,7 +59,7 @@ agree() {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
apt_install() {
 | 
					apt_install() {
 | 
				
			||||||
  sudo apt install --yes --install-recommends $1 > /dev/null
 | 
					  sudo apt-get install --yes --install-recommends $1 > /dev/null
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
pip_install() {
 | 
					pip_install() {
 | 
				
			||||||
@ -68,15 +68,14 @@ pip_install() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
export PATH=~/.local/bin:$PATH
 | 
					export PATH=~/.local/bin:$PATH
 | 
				
			||||||
 | 
					
 | 
				
			||||||
agree "Update apt cache" && sudo apt update > /dev/null
 | 
					agree "Update apt cache" && sudo apt-get update > /dev/null
 | 
				
			||||||
agree "Upgrade apt packages" "N" && sudo apt upgrade > /dev/null
 | 
					agree "Upgrade apt packages" "N" && sudo apt-get upgrade > /dev/null
 | 
				
			||||||
 | 
					
 | 
				
			||||||
missing git && agree "Install git" && apt_install git
 | 
					missing git && agree "Install git" && apt_install git
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if missing pip; then
 | 
					if missing pip; then
 | 
				
			||||||
  agree "Install python-pip" && apt_install python-pip
 | 
					  agree "Install python-pip" && apt_install python-pip
 | 
				
			||||||
  agree "Upgrade pip with pip" && \
 | 
					  agree "Upgrade pip with pip" && sudo -H pip install --upgrade pip > /dev/null
 | 
				
			||||||
    sudo -H pip_install --upgrade pip > /dev/null
 | 
					 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
missing virtualenv && agree "Install virtualenv" && pip_install virtualenv
 | 
					missing virtualenv && agree "Install virtualenv" && pip_install virtualenv
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user