mirror of https://github.com/rust-lang/book
Don't create a dictionary in CI; error if it's not found
This commit is contained in:
parent
41aeb67f8d
commit
e7d52b93ce
|
@ -53,6 +53,13 @@ if [[ "$1" == "list" ]]; then
|
||||||
mode="list"
|
mode="list"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Error if running in list (CI) mode and there isn't a dictionary file;
|
||||||
|
# creating one in CI won't do any good :(
|
||||||
|
if [[ "$mode" == "list" && ! -f "$dict_filename" ]]; then
|
||||||
|
echo "No dictionary file found! A dictionary file is required in CI!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ ! -f "$dict_filename" ]]; then
|
if [[ ! -f "$dict_filename" ]]; then
|
||||||
# Pre-check mode: generates dictionary of words aspell consider typos.
|
# Pre-check mode: generates dictionary of words aspell consider typos.
|
||||||
# After user validates that this file contains only valid words, we can
|
# After user validates that this file contains only valid words, we can
|
||||||
|
|
Loading…
Reference in New Issue