From 719f8832a308b667f07f2961c6c8caab0fcb7c1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Sat, 26 Oct 2013 00:46:02 +0200 Subject: [PATCH] Allow running `install.sh` from outside of project's root `cd` into project's root on every invocation. Fixes #243 --- install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install.sh b/install.sh index f01f4569..fa077982 100755 --- a/install.sh +++ b/install.sh @@ -2,6 +2,8 @@ set -e +cd "${0%/*}" + if [ -z "${PREFIX}" ]; then PREFIX="/usr/local" fi