Browse Source

fix spacing of bash scripts

pull/21760/head
jm96441n 2 months ago
parent
commit
1e97297215
  1. 9
      build-support/scripts/gen-changelog.sh

9
build-support/scripts/gen-changelog.sh

@ -6,12 +6,17 @@ set -eo pipefail
pr_number=$(gh pr list -H "$(git rev-parse --abbrev-ref HEAD)" -q ".[0].number" --json "number") pr_number=$(gh pr list -H "$(git rev-parse --abbrev-ref HEAD)" -q ".[0].number" --json "number")
if [ -z "$pr_number" ]; then
echo "Error: Could not find PR number."
exit 1
fi
# check if this changelog is referencing an enterprise change # check if this changelog is referencing an enterprise change
curdir=$(pwd) curdir=$(pwd)
filename = ".changelog/$pr_number.txt" filename=".changelog/$pr_number.txt"
if [[ ! $curdir == *"enterprise"* ]]; then if [[ ! $curdir == *"enterprise"* ]]; then
is_enterprise = "n" is_enterprise="n"
read -p "Is this an enterprise PR? (y/n): " is_enterprise read -p "Is this an enterprise PR? (y/n): " is_enterprise
if [[ $is_enterprise == "y" ]]; then if [[ $is_enterprise == "y" ]]; then

Loading…
Cancel
Save