From a9be31f9ee7c20e88fb2499d06b62d9189480fb4 Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Wed, 29 Nov 2023 08:23:29 -0300 Subject: [PATCH 1/2] Error on unset variable in build.sh --- .github/scripts/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/scripts/build.sh b/.github/scripts/build.sh index 4e9b1556c..64b6cc9fc 100755 --- a/.github/scripts/build.sh +++ b/.github/scripts/build.sh @@ -1,6 +1,7 @@ #!/bin/bash set -e +set -u set -o pipefail error() { @@ -14,4 +15,4 @@ cd cpython/Doc || exit 1 mkdir -p locales/"$LOCALE"/ ln -sfn "$(realpath ../../docs)" locales/"$LOCALE"/LC_MESSAGES pip3 install -q -r requirements.txt -sphinx-build -b dummy -d build/doctrees -j auto -D language=$LOCALE -D gettext_compact=0 -W --keep-going -W . build/html 2> >(error) \ No newline at end of file +sphinx-build -b dummy -d build/doctrees -j auto -D language=$LOCALE -D gettext_compact=0 -W --keep-going -W . build/html 2> >(error) From 5278449da6c59ce04943f1558c8bd7b06140b81c Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Wed, 29 Nov 2023 08:25:39 -0300 Subject: [PATCH 2/2] Error on unset variable in update.sh --- .github/scripts/update.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/scripts/update.sh b/.github/scripts/update.sh index 4a15d3095..0f2231d9f 100755 --- a/.github/scripts/update.sh +++ b/.github/scripts/update.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -u + cd cpython || exit 1 # Restore git timestamp for enabling build cache