mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-12 18:42:36 +01:00
Make changelog format display diff in unified format (#24631)
This commit is contained in:
committed by
GitHub
parent
28a7e8f02a
commit
72a8d25ad7
@@ -7,7 +7,7 @@ output=$(node scripts/format-changelog.js distribution/changelog.txt)
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "Script ran successfully. Running diff..."
|
||||
# Run diff on the original file and the output
|
||||
diff --color=always -b <(echo "$output") distribution/changelog.txt
|
||||
diff --color=always -b -U3 <(echo "$output") distribution/changelog.txt
|
||||
# If diff finds differences, exit with a non-zero status
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Differences found. Exiting with status 1."
|
||||
|
||||
Reference in New Issue
Block a user