Skip to content

Commit 2797f58

Browse files
authored
Error on unset variable in scritps (#339)
* Error on unset variable in build.sh * Error on unset variable in update.sh
1 parent 12fad78 commit 2797f58

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-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)

.github/scripts/update.sh

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

3+
set -u
4+
35
cd cpython || exit 1
46

57
# Restore git timestamp for enabling build cache

0 commit comments

Comments
 (0)