diff --git a/install-cmake.sh b/install-cmake.sh index 15534834..2906f53d 100755 --- a/install-cmake.sh +++ b/install-cmake.sh @@ -629,8 +629,6 @@ clone_from_github() create_from_github() { - push_directory "$BUILD_SRC_DIR" - local ACCOUNT=$1 local REPO=$2 local BRANCH=$3 @@ -657,8 +655,6 @@ create_from_github() display_message "Cloning $FORK/$BRANCH..." clone_from_github "$FORK" "$BRANCH" fi - - pop_directory } # Standard build from github. diff --git a/install-cmakepresets.sh b/install-cmakepresets.sh index 8c438609..4ae28dc1 100755 --- a/install-cmakepresets.sh +++ b/install-cmakepresets.sh @@ -665,8 +665,6 @@ clone_from_github() create_from_github() { - push_directory "$BUILD_SRC_DIR" - local ACCOUNT=$1 local REPO=$2 local BRANCH=$3 @@ -693,8 +691,6 @@ create_from_github() display_message "Cloning $FORK/$BRANCH..." clone_from_github "$FORK" "$BRANCH" fi - - pop_directory } # Standard build from github. diff --git a/install.sh b/install.sh index e3b28005..8cc292e7 100755 --- a/install.sh +++ b/install.sh @@ -572,8 +572,6 @@ clone_from_github() create_from_github() { - push_directory "$BUILD_SRC_DIR" - local ACCOUNT=$1 local REPO=$2 local BRANCH=$3 @@ -600,8 +598,6 @@ create_from_github() display_message "Cloning $FORK/$BRANCH..." clone_from_github "$FORK" "$BRANCH" fi - - pop_directory } # Standard build from github.