From 33b2b4b0fedf2beab5025d1fed4c988fc190d776 Mon Sep 17 00:00:00 2001 From: Muhammad Ibrahim Date: Tue, 30 Sep 2025 08:02:30 +0100 Subject: [PATCH 1/2] fixed syntax issue in setup.sh --- setup.sh | 4 ++++ 1 file changed, 4 insertions(+) mode change 100644 => 100755 setup.sh diff --git a/setup.sh b/setup.sh old mode 100644 new mode 100755 index 51e1c58..f2c751c --- a/setup.sh +++ b/setup.sh @@ -1209,7 +1209,11 @@ create_agent_version() { cp "$APP_DIR/agents/patchmon-agent.sh" "$APP_DIR/backend/" print_status "Agent version management removed - using file-based approach" +# Ensure we close the conditional and the function properly + fi + return 0 +} # Create deployment summary create_deployment_summary() { print_info "Writing deployment summary into deployment-info.txt..." From 21d6a3b763613342111cc4643c6be0f78893c865 Mon Sep 17 00:00:00 2001 From: Muhammad Ibrahim Date: Tue, 30 Sep 2025 08:06:03 +0100 Subject: [PATCH 2/2] fixed lefthook error on setup.sh --- setup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.sh b/setup.sh index f2c751c..0c957e2 100755 --- a/setup.sh +++ b/setup.sh @@ -722,7 +722,7 @@ install_dependencies() { export NPM_CONFIG_CACHE=$APP_DIR/.npm export NPM_CONFIG_PREFIX=$APP_DIR/.npm-global export NPM_CONFIG_TMP=$APP_DIR/.npm/tmp - npm install --omit=dev --no-audit --no-fund --no-save + npm install --omit=dev --no-audit --no-fund --no-save --ignore-scripts "; then print_error "Failed to install root dependencies" return 1 @@ -737,7 +737,7 @@ install_dependencies() { export NPM_CONFIG_CACHE=$APP_DIR/.npm export NPM_CONFIG_PREFIX=$APP_DIR/.npm-global export NPM_CONFIG_TMP=$APP_DIR/.npm/tmp - npm install --omit=dev --no-audit --no-fund --no-save + npm install --omit=dev --no-audit --no-fund --no-save --ignore-scripts "; then print_error "Failed to install backend dependencies" return 1 @@ -753,7 +753,7 @@ install_dependencies() { export NPM_CONFIG_CACHE=$APP_DIR/.npm export NPM_CONFIG_PREFIX=$APP_DIR/.npm-global export NPM_CONFIG_TMP=$APP_DIR/.npm/tmp - npm install --no-audit --no-fund --no-save + npm install --no-audit --no-fund --no-save --ignore-scripts "; then print_error "Failed to install frontend dependencies" return 1