Merge remote-tracking branch 'origin/master'

This commit is contained in:
Andrejus
2021-03-28 18:42:08 +01:00
8 changed files with 28 additions and 19 deletions

View File

@@ -17,6 +17,6 @@ if ! [ -f "$fisher_location" ]; then
curl https://git.io/fisher --create-dirs -sLo "$fisher_location"
fi
echo "fisher is installed, updating..."
`fish -c "fisher"`;
fish -c "fisher update";
fish -c "fisher --version"

View File

@@ -1,13 +1,15 @@
build-essential
libssl-dev
build-essential
libssl-dev
libbz2-dev
libreadline-dev
libreadline6
libreadline6-dev
libsqlite3-dev
llvm
libncurses5-dev
libncursesw5-dev
xz-utils
tk-dev
libffi-dev
liblzma-dev
python-openssl
xz-utils
tk-dev
libffi-dev
liblzma-dev
zlib1g-dev

View File

@@ -15,9 +15,10 @@ if not_installed "docker"; then
software-properties-common
# Add repository
add_key "https://download.docker.com/linux/ubuntu/gpg"
distro=$(lsb_release -si | tr '[:upper:]' '[:lower:]') # cast to lowercase
add_key "https://download.docker.com/linux/$distro/gpg" "docker-apt-key"
sudo add-apt-repository -y \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
"deb [arch=amd64] https://download.docker.com/linux/$distro \
$(lsb_release -cs) \
stable"
update

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env bash
source "$(dirname $0)/utils.sh"
tf_version="0.13.5"
tf_version="0.14.6"
if not_installed "terraform"; then
echo "Installing terraform..."
tf_archive="terraform_${tf_version}_linux_amd64.zip"
@@ -16,7 +16,7 @@ fi
echo "terraform is installed"
terraform --version
tf_lsp_version="0.8.0"
tf_lsp_version="0.13.0"
if not_installed "terraform-ls"; then
echo "Installing terraform-ls..."
tf_lsp_archive="terraform-ls_${tf_lsp_version}_linux_amd64.zip"

View File

@@ -39,10 +39,9 @@ add_ppa() {
}
# @arg $1 url to add
# @arg $2 keyring to add to
add_key() {
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=true \
curl -fsSL $1 \
| sudo apt-key add -
curl -fsSL $1 | sudo apt-key --keyring "/etc/apt/trusted.gpg.d/$2.gpg" add
}
# @arg $1 URL to run