diff options
Diffstat (limited to '.github/scripts')
| -rwxr-xr-x | .github/scripts/changelog.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.github/scripts/changelog.sh b/.github/scripts/changelog.sh index 76492cf..026549e 100755 --- a/.github/scripts/changelog.sh +++ b/.github/scripts/changelog.sh | |||
| @@ -26,7 +26,7 @@ set -e | |||
| 26 | 26 | ||
| 27 | # Check if the version argument is provided | 27 | # Check if the version argument is provided |
| 28 | if [ "$#" -ne 1 ]; then | 28 | if [ "$#" -ne 1 ]; then |
| 29 | echo "Usage: $0 <version>" | 29 | echo "Usage: $0 <version>" 1>&2 |
| 30 | exit 1 | 30 | exit 1 |
| 31 | fi | 31 | fi |
| 32 | 32 | ||
| @@ -37,7 +37,7 @@ changelog="" | |||
| 37 | 37 | ||
| 38 | # Check if the specified changelog file exists | 38 | # Check if the specified changelog file exists |
| 39 | if [ ! -f "$changelog_file" ]; then | 39 | if [ ! -f "$changelog_file" ]; then |
| 40 | echo "Error: Changelog file '$changelog_file' not found" | 40 | echo "Error: Changelog file '$changelog_file' not found" 1>&2 |
| 41 | exit 1 | 41 | exit 1 |
| 42 | fi | 42 | fi |
| 43 | 43 | ||
| @@ -60,7 +60,7 @@ done < "$changelog_file" | |||
| 60 | 60 | ||
| 61 | # If the specified version was not found, print an error | 61 | # If the specified version was not found, print an error |
| 62 | if ! $found_version; then | 62 | if ! $found_version; then |
| 63 | echo "Error: Version $version was not found in changelog" | 63 | echo "Error: Version $version was not found in changelog" 1>&2 |
| 64 | exit 1 | 64 | exit 1 |
| 65 | fi | 65 | fi |
| 66 | 66 | ||
