Bootstrap using stow

This commit is contained in:
Andrejus
2020-07-12 03:07:01 +01:00
parent 21757767d2
commit b748e73e80
18 changed files with 52 additions and 25 deletions

View File

@@ -2,16 +2,15 @@
source "$(dirname $0)/utils.sh"
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip -d "$dotfiles_dir/tmp"
temp_dir=$(mktemp -d)
unzip awscliv2.zip -d "$temp_dir"
rm awscliv2.zip
if not_installed "aws"; then
echo "Installing awscli..."
sudo ./tmp/aws/install
sudo $temp_dir/aws/install
fi
echo "awscli is installed, upgrading..."
sudo ./tmp/aws/install --update
sudo $temp_dir/aws/install --update
aws --version
rm -rf ./tmp/aws