From ff41c4d8318e9554fe7dc6fdcffbfd1b26b8141c Mon Sep 17 00:00:00 2001 From: Thomas Boni Date: Wed, 18 Feb 2026 11:15:03 +0100 Subject: [PATCH] fix(install): support case when repo is already cloned --- charts/plumber/Chart.yaml | 4 ++-- install.sh | 12 +++++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/charts/plumber/Chart.yaml b/charts/plumber/Chart.yaml index 6bb0914..8edb332 100644 --- a/charts/plumber/Chart.yaml +++ b/charts/plumber/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: plumber description: Helm chart for Plumber type: application -version: "1.0.3" -appVersion: "1.0.3" +version: "1.0.4" +appVersion: "1.0.4" home: https://github.com/getplumber/platform/ maintainers: - name: devpro diff --git a/install.sh b/install.sh index e750572..a3769f0 100755 --- a/install.sh +++ b/install.sh @@ -174,10 +174,16 @@ if [ ! -f compose.yml ] || [ ! -f versions.env ]; then exit 1 fi - git clone "$REPO_URL" "$REPO_DIR" - cd "$REPO_DIR" + if [ -d "$REPO_DIR" ]; then + echo "Directory ${REPO_DIR} already exists, updating..." + cd "$REPO_DIR" + git pull --ff-only || true + else + git clone "$REPO_URL" "$REPO_DIR" + cd "$REPO_DIR" + fi echo "" - echo -e "${GREEN}✓${NC} Repository cloned to $(pwd)" + echo -e "${GREEN}✓${NC} Repository ready at $(pwd)" echo "" fi