Created
October 11, 2021 09:17
-
-
Save filviu/28cab74857264ab6a765452b4996c086 to your computer and use it in GitHub Desktop.
update hetzner cli to latest version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
hcloud version | |
temp_dir=$(mktemp -d) | |
cd $temp_dir | |
wget https://github.com/hetznercloud/cli/releases/latest/download/hcloud-linux-amd64.tar.gz | |
tar -xf hcloud-linux-amd64.tar.gz | |
mv hcloud ~/bin/ | |
cd - | |
rm -rf $temp_dir | |
hcloud version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment