-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -359,19 +359,21 @@ initialize() { | |
local NPROCS=$(getconf _NPROCESSORS_ONLN 2>/dev/null) | ||
|
||
if [ -d "$SUBMODULES" ]; then | ||
echo | ||
echo "Info: the source code has already been cloned to '$SUBMODULES', exiting..." | ||
return | ||
fi | ||
|
||
echo | ||
git clone --branch "$CLONE_BRANCH" [email protected]:/Percona-Lab/pmm-submodules.git "$SUBMODULES" | ||
cd "$SUBMODULES" > /dev/null | ||
git submodule update --init --jobs ${NPROCS:-2} | ||
git submodule status | ||
|
||
echo | ||
echo "Info: the source code has been cloned to '$SUBMODULES'." | ||
echo | ||
|
||
echo | ||
echo "Pulling the docker image $RPMBUILD_DOCKER_IMAGE ..." | ||
docker pull --platform="$PLATFORM" "$RPMBUILD_DOCKER_IMAGE" | ||
|
||
|
@@ -403,7 +405,6 @@ check_preprequisites() { | |
fi | ||
|
||
echo "Pre-requisites check passed." | ||
echo | ||
} | ||
|
||
cleanup() { | ||
|