curl e rustup

This commit is contained in:
2020-11-02 13:48:53 +01:00
parent fd7f544fa8
commit de29dcc6c1
4 changed files with 33 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#! /bin/bash --
[ ! -z "${GREZZO_1604316819}" ] && return; GREZZO_1604316819=0
function feat_addpacks_curl() {
if ! feat_missing "apt-get"; then
sudo apt-get install -y curl
elif ! feat_missing "pacman"; then
sudo pacman -S --needed curl
elif ! feat_missing "apk"; then
sudo apk add --no-cache curl
fi
}
function feat_add_curl() {
feat_addpacks_curl
}
+3
View File
@@ -1,6 +1,8 @@
#! /bin/bash --
[ ! -z "${GREZZO_1577142035}" ] && return; GREZZO_1577142035=0
. "$(this_script_path)/curl.sh"
function feat_addpacks_pip_dev() {
if ! feat_missing "apt-get"; then
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
@@ -24,6 +26,7 @@ function feat_addpacks_pip_dev() {
}
function feat_add_pip() {
feat_needed curl
feat_addpacks_pip_dev
sed -n -e '/# Load pyenv automatically/,$p' \
<(curl https://pyenv.run | bash 2>&1) \
+2
View File
@@ -2,9 +2,11 @@
[ ! -z "${GREZZO_1577142078}" ] && return; GREZZO_1577142078=0
. "$(this_script_path)/pip.sh"
. "$(this_script_path)/curl.sh"
function feat_add_poetry() {
feat_needed "pip"
feat_needed "curl"
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
. "$HOME/.poetry/env"
}
+11
View File
@@ -0,0 +1,11 @@
#! /bin/bash --
[ ! -z "${GREZZO_1604315952}" ] && return; GREZZO_1604315952=0
. "$(this_script_path)/curl.sh"
function feat_add_rustup() {
feat_needed "curl"
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
. "$HOME/.cargo/env"
}