fix script to deal with more than 9 tables
This commit is contained in:
4
.github/checks/sorted.sh
vendored
4
.github/checks/sorted.sh
vendored
@@ -13,8 +13,8 @@ function checkarray_quoted_name
|
|||||||
START="\\/\\* BEGIN SORTED.SH \\*\\/"
|
START="\\/\\* BEGIN SORTED.SH \\*\\/"
|
||||||
END="\\/\\* END SORTED.SH \\*\\/"
|
END="\\/\\* END SORTED.SH \\*\\/"
|
||||||
|
|
||||||
awk '/'"$START"'/{flag=1; count++; next} /'"$END"'/{flag=0;} flag {print count,"##",$0}' "$CHECK_FILE" | \
|
awk '/'"$START"'/{flag=1; count++; next} /'"$END"'/{flag=0;} flag {printf("%04d##%s\n", count, $0)}' "$CHECK_FILE" | \
|
||||||
sed -e 's:\(.*\) ##.*\"\(.*\)\".*:\1##\2:g' > .a.tmp
|
sed -e 's:\(.*\)##.*\"\(.*\)\".*:\1##\2:g' > .a.tmp
|
||||||
|
|
||||||
if [[ -z $(grep '[^[:space:]]' .a.tmp) ]] ; then
|
if [[ -z $(grep '[^[:space:]]' .a.tmp) ]] ; then
|
||||||
echo "error: "$1" table is empty"
|
echo "error: "$1" table is empty"
|
||||||
|
|||||||
Reference in New Issue
Block a user