We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e193de5 + b19e4de commit 0f62cd1Copy full SHA for 0f62cd1
scripts/verify-license.sh
@@ -21,6 +21,7 @@ set -euo pipefail
21
22
REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
23
CURRENT_YEAR="$(date +%Y)"
24
+MIN_YEAR="2025"
25
LICENSE_OWNER="Alibaba Group Holding Ltd."
26
LICENSE_REGEX="Copyright [0-9]{4} ${LICENSE_OWNER// / }"
27
@@ -131,7 +132,7 @@ while IFS= read -r file; do
131
132
continue
133
fi
134
found_year="$(echo "$header" | grep -Eo "$LICENSE_REGEX" | head -n1 | grep -Eo '[0-9]{4}')"
- if [[ -z "$found_year" || "$found_year" -lt "$CURRENT_YEAR" ]]; then
135
+ if [[ -z "$found_year" || "$found_year" -gt "$CURRENT_YEAR" || "$found_year" -lt "$MIN_YEAR" ]]; then
136
missing+=("$file")
137
138
done < <(git -C "$REPO_ROOT" ls-files)
0 commit comments