From 5b2ac6855afd2aaaefc46754f8c15d66b51d88ab Mon Sep 17 00:00:00 2001 From: David Hoese Date: Sun, 1 Sep 2024 10:05:27 -0500 Subject: [PATCH] Switch to 'sh' compatible syntax in RTD config --- .readthedocs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index f6f9662c1c..8404e7da46 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -19,6 +19,6 @@ build: pre_install: - git update-index --assume-unchanged doc/rtd_environment.yml doc/source/conf.py pre_build: - - cd doc/source && if [[ $READTHEDOCS_VERSION =~ latest|stable ]]; then python generate_area_def_list.py; else touch area_def_list.rst; fi + - cd doc/source && if [ "$READTHEDOCS_VERSION" = "latest" ] || [ "$READTHEDOCS_VERSION" = "stable" ]; then python generate_area_def_list.py; else touch area_def_list.rst; fi conda: environment: doc/rtd_environment.yml