From d92f557b4b33eeb07f7a84ff9c10fb168c964d97 Mon Sep 17 00:00:00 2001 From: nmemmert <67961292+nmemmert@users.noreply.github.com> Date: Wed, 5 Nov 2025 13:28:49 -0500 Subject: [PATCH] Fix git clone error by checking if repository already exists and using git pull instead --- ubuntu-install.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ubuntu-install.sh b/ubuntu-install.sh index 37ff552..aebb137 100644 --- a/ubuntu-install.sh +++ b/ubuntu-install.sh @@ -67,8 +67,15 @@ REPO_URL="https://gitlab.com/trbc-dev/eoy-pdf-sortandmerge.git" log_info "Cloning application repository..." if command -v git &> /dev/null; then sudo apt install -y git - git clone "$REPO_URL" . - git checkout web-app + if [[ -d ".git" ]]; then + log_info "Repository already exists, pulling latest changes..." + git pull origin web-app + git checkout web-app + else + log_info "Cloning fresh repository..." + git clone "$REPO_URL" . + git checkout web-app + fi else log_warning "Git not available. Please manually download and extract the application files to $APP_DIR" exit 1