Skip to content

Commit a9be31f

Browse files
authored
Error on unset variable in build.sh
1 parent 12fad78 commit a9be31f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/scripts/build.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22

33
set -e
4+
set -u
45
set -o pipefail
56

67
error() {
@@ -14,4 +15,4 @@ cd cpython/Doc || exit 1
1415
mkdir -p locales/"$LOCALE"/
1516
ln -sfn "$(realpath ../../docs)" locales/"$LOCALE"/LC_MESSAGES
1617
pip3 install -q -r requirements.txt
17-
sphinx-build -b dummy -d build/doctrees -j auto -D language=$LOCALE -D gettext_compact=0 -W --keep-going -W . build/html 2> >(error)
18+
sphinx-build -b dummy -d build/doctrees -j auto -D language=$LOCALE -D gettext_compact=0 -W --keep-going -W . build/html 2> >(error)

0 commit comments

Comments
 (0)