File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ BANNER_NAME="cffconvert"
47
47
FILE_TYPE_SEARCH_PATTERN=' No Magic Pattern'
48
48
49
49
# File name to match [Regex based]
50
- FILE_NAME_SEARCH_PATTERN=' ^ CITATION.cff$'
50
+ FILE_NAME_SEARCH_PATTERN=' CITATION.cff$'
51
51
52
52
# Set where to look for files.
53
53
SCAN_ROOT=' .'
@@ -83,7 +83,8 @@ function check_file()
83
83
84
84
file_count=$(( file_count + 1 ))
85
85
# shellcheck disable=SC2310
86
- if ! errors=$( run_command " ${TEST_COMMAND[@]} " < " ${filename} " ) ; then
86
+
87
+ if ! errors=$( run_command " ${TEST_COMMAND[@]} " " --infile" " ${filename} " ) ; then
87
88
fail " ${filename} " " ${errors} "
88
89
fail_count=$(( fail_count + 1 ))
89
90
else
Original file line number Diff line number Diff line change
1
+ cff-version : 1.2.0
2
+ message : If you use this software, please cite it using these metadata.
3
+ title : Validate Citation File
4
+ abstract : Ensure that your CITATION.cff is valid.
5
+ type : software
6
+ version : 0.1.1
7
+ date-released : 2024-06-24
8
+ repository-code : https://github.com/CICDToolbox/validate-citation
9
+ keywords :
10
+ - " Wolf Software"
11
+ - " Software"
12
+ license : MIT
13
+ authors :
14
+ - family-names : " Wolf"
15
+ orcid : " https://orcid.org/0009-0007-0983-2072"
You can’t perform that action at this time.
0 commit comments