From 37424606baf6e0211b76164332bc9479d6a1f36a Mon Sep 17 00:00:00 2001 From: TJ Holowaychuk Date: Mon, 4 Jun 2012 13:48:38 -0700 Subject: [PATCH] tweak update a bit --- bin/git-extras | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/git-extras b/bin/git-extras index 17d5692..c08257d 100755 --- a/bin/git-extras +++ b/bin/git-extras @@ -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)" }