mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 15:36:21 -04:00
25 lines
712 B
Diff
25 lines
712 B
Diff
diff --git a/bin/git-extras b/bin/git-extras
|
|
index e49cd24..4ae28b5 100755
|
|
--- a/bin/git-extras
|
|
+++ b/bin/git-extras
|
|
@@ -4,13 +4,12 @@ VERSION="4.3.0"
|
|
INSTALL_SCRIPT="https://raw.githubusercontent.com/tj/git-extras/main/install.sh"
|
|
|
|
update() {
|
|
- local bin="$(command -v git-extras)"
|
|
- local prefix=${bin%/*/*}
|
|
- local orig=$PWD
|
|
-
|
|
- curl -s $INSTALL_SCRIPT | PREFIX="$prefix" bash /dev/stdin \
|
|
- && cd "$orig" \
|
|
- && echo "... updated git-extras $VERSION -> $(git extras --version)"
|
|
+ echo "This git-extras installation is managed by Homebrew."
|
|
+ echo "If you'd like to update git-extras, run the following:"
|
|
+ echo
|
|
+ echo " brew upgrade git-extras"
|
|
+ echo
|
|
+ return 1
|
|
}
|
|
|
|
updateForWindows() {
|