mirror of
https://github.com/wahyd4/gvm.git
synced 2026-08-09 04:46:19 +10:00
in case gvm-installer within a git repository other than the gvm repo itself
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user