Skip to content

Commit c2c5cfa

Browse files
committed
fix: disable nounset during compile.sh source to handle optional $2
1 parent 9e52176 commit c2c5cfa

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/build-nvidia.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,10 @@ jobs:
135135
printf "#!/bin/bash\nexec ${real_wget} \"\${@/--show-progress/}\"" > /usr/local/bin/wget
136136
chmod +x /usr/local/bin/wget
137137
138-
source source/compile.sh "${DRIVER_VERSION}" ${BUILD_ARG:-"dummy"}
138+
set +u
139+
source source/compile.sh "${DRIVER_VERSION}" ${BUILD_ARG}
139140
nvidia_driver "${DRIVER_VERSION}" ${BUILD_ARG}
141+
set -u
140142
141143
# ---------------------------------------------------------------
142144
# Step 4: Copy output artifacts

0 commit comments

Comments
 (0)