mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
tweak update a bit
This commit is contained in:
parent
c94619f920
commit
37424606ba
|
|
@ -3,15 +3,15 @@
|
|||
VERSION="1.5.1"
|
||||
|
||||
update() {
|
||||
local binfile=$(which git-extras)
|
||||
local binpath=${binfile%/*/*}
|
||||
local bin=$(which git-extras)
|
||||
local prefix=${bin%/*/*}
|
||||
local orig=$PWD
|
||||
|
||||
cd /tmp \
|
||||
&& rm -fr ./git-extras \
|
||||
&& git clone --depth 1 https://github.com/visionmedia/git-extras.git \
|
||||
&& cd git-extras \
|
||||
&& PREFIX=${binpath:=} make install \
|
||||
&& PREFIX="$prefix" make install \
|
||||
&& cd "$orig" \
|
||||
&& echo "... updated git-extras $VERSION -> $(git extras --version)"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue