gpu: Add set -u to scripts

Make the scripts more robust by failing on unset varaibles

Signed-off-by: Zvonko Kaiser <zkaiser@nvidia.com>
This commit is contained in:
Zvonko Kaiser 2025-01-23 16:06:33 +00:00
parent f153229865
commit 98e0dc1676
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
# SPDX-License-Identifier: Apache-2.0
#!/bin/bash
set -xe
set -xeuo pipefail
shopt -s nullglob
shopt -s extglob

View File

@ -4,7 +4,7 @@
#
# SPDX-License-Identifier: Apache-2.0
set -e
set -euo pipefail
[ -n "$DEBUG" ] && set -x
readonly BUILD_DIR="/kata-containers/tools/packaging/kata-deploy/local-build/build/"