Last active
November 16, 2022 01:11
-
-
Save ezzatron/d1dedc5f17ad3657ca8c330df3ad8588 to your computer and use it in GitHub Desktop.
Installer for older versions of Telepresence
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 | |
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