Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
srikrishnak committed Feb 20, 2025
1 parent f4df761 commit 4a9e502
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/scripts/duckdb-ref-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
}

0 comments on commit 4a9e502

Please sign in to comment.