Skip to content

Commit 8ca11ae

Browse files
committed
set -u strikes again
1 parent f74e2eb commit 8ca11ae

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/scripts/firesim-manager-entrypoint.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,22 @@ if [ ! -f "${VIVADO_PATH}" ]; then
2424
exit 1
2525
fi
2626

27+
echo "Sourcing Vivado settings: ${VIVADO_PATH}"
28+
had_nounset=0
29+
case "$-" in
30+
*u*)
31+
had_nounset=1
32+
set +u
33+
;;
34+
esac
35+
2736
# shellcheck disable=SC1090
2837
source "${VIVADO_PATH}"
2938

39+
if [ "${had_nounset}" -eq 1 ]; then
40+
set -u
41+
fi
42+
3043
if [ ! -s "${PUBLIC_KEY_PATH}" ]; then
3144
echo "Missing public key mounted at ${PUBLIC_KEY_PATH}." >&2
3245
exit 1

0 commit comments

Comments
 (0)