Compare commits
2 Commits
92053400a3
...
9433857356
Author | SHA1 | Date | |
---|---|---|---|
9433857356 | |||
20f1b08e04 |
@ -59,7 +59,7 @@ agree() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
apt_install() {
|
apt_install() {
|
||||||
sudo apt-get install --yes --install-recommends $1 > /dev/null
|
sudo apt install --yes --install-recommends $1 > /dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
pip_install() {
|
pip_install() {
|
||||||
@ -68,14 +68,15 @@ pip_install() {
|
|||||||
|
|
||||||
export PATH=~/.local/bin:$PATH
|
export PATH=~/.local/bin:$PATH
|
||||||
|
|
||||||
agree "Update apt cache" && sudo apt-get update > /dev/null
|
agree "Update apt cache" && sudo apt update > /dev/null
|
||||||
agree "Upgrade apt packages" "N" && sudo apt-get upgrade > /dev/null
|
agree "Upgrade apt packages" "N" && sudo apt 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" && sudo -H pip install --upgrade pip > /dev/null
|
agree "Upgrade pip with pip" && \
|
||||||
|
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