Skip to content
Merged
Prev Previous commit
Next Next commit
Bracket both expressions
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
  • Loading branch information
hugovk and sobolevn authored May 12, 2023
commit de18c2f6b54d5e9a5f301d7ec8da1c442308b961
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ build:
# If there are no changes (git diff exits with 0) we force the command to return with 183.
# This is a special exit code on Read the Docs that will cancel the build immediately.
- |
if [[ "$READTHEDOCS_VERSION_TYPE" = "external" ]] && git diff --quiet origin/main -- Doc/ .readthedocs.yml; then
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && [ "$(git diff --quiet origin/main -- Doc/ .readthedocs.yml; echo $?)" -eq 0 ]; then
echo "No changes to Doc/ - exiting the build.";
exit 183;
fi
Expand Down