Skip to content

Instantly share code, notes, and snippets.

@keidarcy
Last active January 10, 2024 06:50
Show Gist options
  • Save keidarcy/024c8398530ddfb7490c7945ed8ada88 to your computer and use it in GitHub Desktop.
Save keidarcy/024c8398530ddfb7490c7945ed8ada88 to your computer and use it in GitHub Desktop.
Install `e1s` in AWS CloudShell
#!/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"
#!/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