Skip to content

Commit

Permalink
fix spacing of bash scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jm96441n committed Sep 17, 2024
1 parent 1a0b1e0 commit 1e97297
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions build-support/scripts/gen-changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,17 @@ set -eo pipefail

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
curdir=$(pwd)

filename = ".changelog/$pr_number.txt"
filename=".changelog/$pr_number.txt"
if [[ ! $curdir == *"enterprise"* ]]; then
is_enterprise = "n"
is_enterprise="n"
read -p "Is this an enterprise PR? (y/n): " is_enterprise

if [[ $is_enterprise == "y" ]]; then
Expand Down

0 comments on commit 1e97297

Please sign in to comment.