Skip to content

Commit 7803793

Browse files
committed
Test earlier required variables
1 parent 9120b7f commit 7803793

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

scripts/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
set -xeu
77

8+
# Fail earlier if required variables are not set
9+
test -n ${PYDOC_LANGUAGE+x}
10+
811
cd "$(dirname $0)/.."
912
mkdir -p logs
1013
opts="-D gettext_compact=False -D language=${PYDOC_LANGUAGE} --keep-going -w ../../logs/sphinxwarnings.txt"

scripts/lint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
set -xeu
77

8+
# Fail earlier if required variables are not set
9+
test -n ${PYDOC_LANGUAGE+x}
10+
811
rootdir=$(realpath $(dirname $0)/..)
912

1013
cd "$rootdir"

0 commit comments

Comments
 (0)