Skip to content

Commit acc8970

Browse files
committed
refactor(bind9): correct git-ops script 'clone empty dir'
ref: #21
1 parent 499e80e commit acc8970

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

manifests/bind9/components/git-ops/Deployment.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ spec:
3636
3737
echo "Loop Start......";
3838
39-
if [ ! -d /git/.git ]; then
39+
if [ ! -d /git/source/.git ]; then
4040
4141
REPO_NAME_FULL="${SSH_REPOSITORY_HOST}/${SSH_REPOSITORY_OWNER}/${SSH_REPOSITORY_NAME}.git"
4242
4343
echo "Env var REPO_NAME_FULL=[${REPO_NAME_FULL}] setup";
4444
4545
echo "Clonning repo";
4646
47-
git clone -b master ${REPO_NAME_FULL} /git;
47+
git clone -b master ${REPO_NAME_FULL} /git/source;
4848
4949
else
5050
@@ -53,7 +53,7 @@ spec:
5353
git status;
5454
5555
echo "********************************************";
56-
cd /git;
56+
cd /git/source;
5757
5858
echo "Checking for repo updates";
5959

0 commit comments

Comments
 (0)