Commit c1851403 authored by xu.jimmy.wrk's avatar xu.jimmy.wrk

Prevent non-ASCII list from being submitted, which makes wrong checksum

parent 5d37adda
......@@ -88,6 +88,9 @@ if [ "$*" == "" ]; then
exit 1;
fi
# make sure the list doesn't contain unicode chars
file list.txt | grep ASCII 1> /dev/null || (echo "List contains non-ASCII characters, please remove them." && exit 1) &&
# update date and checksum
sed -i s/"Last Modified:.*$"/"Last Modified: $(date -R -r list.txt)"/ list.txt &&
./addChecksum.pl list.txt &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment