Skip to content

Commit 17aa86b

Browse files
Fixed an issue where a PROJECT_NAME was required even though a template file was provided
1 parent 4d48b4d commit 17aa86b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/scripts/check-license-header.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,11 @@ log() { printf -- "** %s\n" "$*" >&2; }
1717
error() { printf -- "** ERROR: %s\n" "$*" >&2; }
1818
fatal() { error "$@"; exit 1; }
1919

20-
test -n "${PROJECT_NAME:-}" || fatal "PROJECT_NAME unset"
21-
2220
if [ -f .license_header_template ]; then
2321
# allow projects to override the license header template
2422
expected_file_header_template=$(cat .license_header_template)
2523
else
24+
test -n "${PROJECT_NAME:-}" || fatal "PROJECT_NAME unset"
2625
expected_file_header_template="@@===----------------------------------------------------------------------===@@
2726
@@
2827
@@ This source file is part of the ${PROJECT_NAME} open source project

0 commit comments

Comments
 (0)