Skip to content

Commit

Permalink
fix(proposal-tools): Fix code path to be absolute instead of relative (
Browse files Browse the repository at this point in the history
…#3406)

This fixes a problem where unreleased_changelog.md is not found if
running from a different directory.
  • Loading branch information
max-dfinity authored Jan 10, 2025
1 parent df7d443 commit d3354bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testnet/tools/nns-tools/lib/proposals.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ generate_nns_upgrade_proposal_text() {
# our canisters will have such a file, but for now, we are still test
# driving this process.
FEATURES_AND_FIXES="TODO Hand-craft this section."
PRIMARY_RELATIVE_CODE_LOCATION=$(echo "${RELATIVE_CODE_LOCATION}" | cut -d' ' -f1)
UNRELEASED_CHANGELOG_PATH="${PRIMARY_RELATIVE_CODE_LOCATION}/unreleased_changelog.md"
PRIMARY_CANISTER_CODE_LOCATION=$(echo "${CANISTER_CODE_LOCATION}" | cut -d' ' -f1)
UNRELEASED_CHANGELOG_PATH="${PRIMARY_CANISTER_CODE_LOCATION}/unreleased_changelog.md"
if [[ -e "${UNRELEASED_CHANGELOG_PATH}" ]]; then
FEATURES_AND_FIXES=$(
sed -n '/# Next Upgrade Proposal/,$p' \
Expand Down

0 comments on commit d3354bf

Please sign in to comment.