From 12dfbed719d522c83f443a6c90c490cfb6d99f72 Mon Sep 17 00:00:00 2001 From: Jacob Bednarz Date: Thu, 13 Jan 2022 11:16:56 +1100 Subject: [PATCH] refactor path var --- scripts/generate-changelog-entry.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/generate-changelog-entry.sh b/scripts/generate-changelog-entry.sh index b40d18db0b..36195bf7bc 100755 --- a/scripts/generate-changelog-entry.sh +++ b/scripts/generate-changelog-entry.sh @@ -17,6 +17,7 @@ fi current_pr=$(curl -s "https://api.github.com/repos/cloudflare/terraform-provider-cloudflare/issues?state=all&per_page=1" | jq -r ".[].number") next_pr=$(($current_pr + 1)) +changelog_path=".changelog/$next_pr.txt" echo "==> What type of change is this? (enhancement, bug, breaking-change, new-resource, new-data-source, new-guide)" read entry_type @@ -24,12 +25,12 @@ read entry_type echo "==> What is the summary of this change? Example: resource/example: made a change to CRUD operations" read entry_summary -touch $(pwd)/.changelog/$next_pr.txt -cat > $(pwd)/.changelog/$next_pr.txt < $(pwd)/$changelog_path <