Skip to content

Commit 66a78c6

Browse files
committed
Use quotes to make the script valid
1 parent cd06519 commit 66a78c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ build:
2525
# If there are no changes (exit 0) we force the command to return with 183.
2626
# This is a special exit code on Read the Docs that will cancel the build immediately.
2727
- |
28-
if [ $READTHEDOCS_VERSION_TYPE = "external" ];
28+
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ];
2929
then
3030
! git diff --quiet origin/main -- docs/ && exit 183;
3131
fi

docs/user/build-customization.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ Here is an example that cancels builds from pull requests when there are no chan
146146
# If there are no changes (exit 0) we force the command to return with 183.
147147
# This is a special exit code on Read the Docs that will cancel the build immediately.
148148
- |
149-
if [ $READTHEDOCS_VERSION_TYPE = "external" ];
149+
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ];
150150
then
151151
! git diff --quiet origin/main -- docs/ && exit 183;
152152
fi

0 commit comments

Comments
 (0)