diff --git a/.ci/bump-license-year.sh b/.ci/bump-license-year.sh index 7fd51ec9fc6..672c154d3a9 100755 --- a/.ci/bump-license-year.sh +++ b/.ci/bump-license-year.sh @@ -9,7 +9,7 @@ DIR=$3 OLD_VALUE="// Copyright (C) 2001-$PREV_YEAR the original author or authors." NEW_VALUE="// Copyright (C) 2001-$CURR_YEAR the original author or authors." -find "$DIR" -type f \( -name *.java -o -name *.header -o -name *.g4 \) \ +find "$DIR" -type f \( -name '*.java' -o -name '*.header' -o -name '*.g4' \) \ -exec sed -i "s|$OLD_VALUE|$NEW_VALUE|g" {} + BASEDIR=$(pwd) diff --git a/.shellcheckrc b/.shellcheckrc index 8ddb467f3f2..f49f51018b6 100644 --- a/.shellcheckrc +++ b/.shellcheckrc @@ -2,7 +2,6 @@ disable=SC2207 # (warning): Prefer mapfile or read -a to split command output. disable=SC2002 # (style): Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead. -disable=SC2061 # (warning): Quote the parameter to -name so the shell won't interpret it. disable=SC2035 # (info): Use ./glob or -- glob so names with dashes won't become options. disable=SC2016 # (info): Expressions don't expand in single quotes, use double quotes for that. disable=SC2185 # (info): Some finds don't have a default path. Specify '.' explicitly.