Skip to content

Commit

Permalink
fixed grep for different versions
Browse files Browse the repository at this point in the history
  • Loading branch information
cpelley committed Nov 11, 2024
1 parent f08ad24 commit 5b25614
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions copyright_check
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/bash

copyright_header_pattern="^\
copyright_header_pattern="\
# \(C\) Crown Copyright, Met Office. All rights reserved\.\n\
#\n\
# This file is part of 'IMPROVER' and is released under the BSD 3-Clause license\.\n\
# See LICENSE in the root of the repository for full licensing details\.$\
# See LICENSE in the root of the repository for full licensing details\.\
"
copyright_header=$(echo "$copyright_header_pattern" | sed 's/\\(/\(/g; s/\\)/\)/g; s/\\\././g; s/\^//g; s/\$//g')
copyright_header=$(echo "$copyright_header_pattern" | sed 's/\\(/\(/g; s/\\)/\)/g; s/\\\././g')

show_help() {
echo "info: Check the copyright header in the specified files."
Expand Down

0 comments on commit 5b25614

Please sign in to comment.