in case gvm-installer within a git repository other than the gvm repo itself

This commit is contained in:
Ali Abbas
2014-05-18 23:18:26 +02:00
parent f320151f4a
commit 8ffc7cc61e
+1 -1
View File
@@ -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"