From 4a9e5021697f05b921cba6df915b015a58818c99 Mon Sep 17 00:00:00 2001 From: Sri Krishna chowdary K Date: Thu, 20 Feb 2025 18:25:44 +0530 Subject: [PATCH] debug --- .github/scripts/duckdb-ref-update.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/scripts/duckdb-ref-update.sh b/.github/scripts/duckdb-ref-update.sh index 856b9da..0af233a 100755 --- a/.github/scripts/duckdb-ref-update.sh +++ b/.github/scripts/duckdb-ref-update.sh @@ -23,8 +23,12 @@ update_makefile() { local SEARCH_PATTERN="^${REF_VAR_NAME} = .*" local REPLACEMENT_LINE="${REF_VAR_NAME} = ${LATEST_REF}" - echo ${REPLACEMENT_LINE} + echo "Updating Makefile with the new reference..." + echo "Search pattern: ${SEARCH_PATTERN}" + echo "Replacement line: ${REPLACEMENT_LINE}" + if grep -q "${REPLACEMENT_LINE}" Makefile; then + echo "No update needed." return 0 fi @@ -34,5 +38,8 @@ update_makefile() { sed -i "s|${SEARCH_PATTERN}|${REPLACEMENT_LINE}|" Makefile fi + echo "Updated Makefile with the new reference." + git diff --name-only + return 0 } \ No newline at end of file