diff --git a/scripts/update b/scripts/update index 72f6bb3344..07821481b2 100755 --- a/scripts/update +++ b/scripts/update @@ -14,7 +14,10 @@ function has_upstream() { set -x -e -$(dirname $0)/install-git-hooks +scripts_dir="$(cd $(dirname $0) && pwd)" +if [ -d "$(dirname "$scripts_dir")/.git" ] ; then + "$scripts_dir"/install-git-hooks +fi has_upstream && git pull