Skip to content

Commit

Permalink
ci: #42 package name should not contain version
Browse files Browse the repository at this point in the history
  • Loading branch information
Hot-Rain1 committed Oct 12, 2021
1 parent 0d128f0 commit c9101ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ if [ -n "$index_file" ]; then
packages=$(awk '{print $1}' index-body.md)
for i in $packages; do
expr "$i" : "[a-z0-9\.-]\+$" > /dev/null || (echo "$i: 包名应该全为小写" && exit 250)
expr "$i" : ".*\.[0-9]\+\." > /dev/null && echo "[ERROR] $i : 包名不能含有版本号" && exit 2
done
fi

## lint markdown
# TODO

0 comments on commit c9101ab

Please sign in to comment.