Last active
January 10, 2024 06:50
-
-
Save keidarcy/024c8398530ddfb7490c7945ed8ada88 to your computer and use it in GitHub Desktop.
Install `e1s` in AWS CloudShell
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
#!/usr/bin/env bash | |
set -eu | |
version="1.0.11" | |
download_dir="$HOME/e1s_downloads/${version}" | |
bin_dir="$HOME/.local/bin" | |
[ ! -d "$download_dir" ] && mkdir -p "$download_dir" | |
curl -o "$download_dir/e1s.tar.gz" -sSLf "https://github.com/keidarcy/e1s/releases/download/v${version}/e1s_${version}_linux_amd64.tar.gz" | |
tar -xzf "$download_dir/e1s.tar.gz" -C "$download_dir" | |
[ ! -d "$bin_dir" ] && mkdir -p "$bin_dir" | |
cp "$download_dir/e1s" "$bin_dir" | |
echo "e1s ${version} installed successfully" |
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
#!/usr/bin/env bash | |
set -eu | |
version="1.0.11" | |
download_dir="$HOME/e1s_downloads/${version}" | |
bin_dir="$HOME/.local/bin" | |
rm -rf "$download_dir" "$bin_dir/e1s" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment