File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,23 +49,23 @@ zip cf_tutorial_files.zip *.nc *.pp
4949cd -
5050
5151# Regerenate tutorial.py field_analysis.py
52- # if [[ $1 = "latest" ]] || [[ $1 = "archive" ]] ; then
53- # ./test_tutorial_code
54- # rc=$?
55- # if [[ $rc != 0 ]]; then
56- # echo "test_tutorial_code failed."
57- # # exit $rc
58- # fi
59- # pre-commit run --files tutorial.py field_analysis.py
60- # fi
52+ if [[ $1 = " latest" ]] || [[ $1 = " archive" ]] ; then
53+ ./test_tutorial_code
54+ rc=$?
55+ if [[ $rc != 0 ]]; then
56+ echo " test_tutorial_code failed."
57+ # exit $rc
58+ fi
59+ pre-commit run --files tutorial.py field_analysis.py
60+ fi
6161
6262# --------------------------------------------------------------------
6363# Make the latest docs
6464# --------------------------------------------------------------------
6565cd docs
66- # if [[ $1 = "latest" ]] || [[ $1 = "archive" ]] || [[ $1 = "dev-clean" ]] ; then
67- # rm -fr $dir/.doctrees
68- # fi
66+ if [[ $1 = " latest" ]] || [[ $1 = " archive" ]] || [[ $1 = " dev-clean" ]] ; then
67+ rm -fr $dir /.doctrees
68+ fi
6969mkdir -p $dir /_downloads
7070
7171# if [[ $1 = "latest" ]] || [[ $1 = "archive" ]] ; then
You can’t perform that action at this time.
0 commit comments