Skip to content

Commit 1e97297

Browse files
committed
fix spacing of bash scripts
1 parent 1a0b1e0 commit 1e97297

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

build-support/scripts/gen-changelog.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,17 @@ set -eo pipefail
66

77
pr_number=$(gh pr list -H "$(git rev-parse --abbrev-ref HEAD)" -q ".[0].number" --json "number")
88

9+
if [ -z "$pr_number" ]; then
10+
echo "Error: Could not find PR number."
11+
exit 1
12+
fi
13+
914
# check if this changelog is referencing an enterprise change
1015
curdir=$(pwd)
1116

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

1722
if [[ $is_enterprise == "y" ]]; then

0 commit comments

Comments
 (0)