Skip to content

Instantly share code, notes, and snippets.

@ezzatron
Last active November 16, 2022 01:11
Show Gist options
  • Save ezzatron/d1dedc5f17ad3657ca8c330df3ad8588 to your computer and use it in GitHub Desktop.
Save ezzatron/d1dedc5f17ad3657ca8c330df3ad8588 to your computer and use it in GitHub Desktop.
Installer for older versions of Telepresence
#!/usr/bin/env bash
FORMULA="$1"
VERSION="$2"
if [[ -z "$FORMULA" || -z "$VERSION" ]]; then
>&2 echo "Usage: $0 <formula> <version>"
>&2 echo "Example: $0 telepresence-arm64 2.8.5"
exit 1
fi
TAP="$USER/local-telepresence"
brew tap-new "$TAP" &>/dev/null || true
brew extract --force --version="$VERSION" "datawire/blackbird/$FORMULA" "$USER/local-telepresence"
brew install "$TAP/$FORMULA@$VERSION"
brew link --overwrite "$TAP/$FORMULA@$VERSION"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment