From 8ffc7cc61eaf6c36f20a1055e02d3ead1b2833ba Mon Sep 17 00:00:00 2001 From: Ali Abbas Date: Sun, 18 May 2014 23:18:26 +0200 Subject: [PATCH] in case gvm-installer within a git repository other than the gvm repo itself --- binscripts/gvm-installer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binscripts/gvm-installer b/binscripts/gvm-installer index 5af0350..dc122c5 100755 --- a/binscripts/gvm-installer +++ b/binscripts/gvm-installer @@ -59,7 +59,7 @@ SRC_REPO=${SRC_REPO:-https://github.com/moovweb/gvm.git} GIT_ROOT=$(git rev-parse --show-toplevel 2>/dev/null) -if [[ -z "$GIT_ROOT" ]] +if [[ -z "$GIT_ROOT" || "$(basename "$GIT_ROOT")" != "gvm" ]] then echo "Cloning from $SRC_REPO to $GVM_DEST/$GVM_NAME"