Throw error if variable is not set

This commit is contained in:
Héctor Molinero Fernández
2021-05-11 00:02:06 +02:00
parent f122a7e5f3
commit 4ce5c3ab4c
2 changed files with 2 additions and 2 deletions

2
run.sh
View File

@@ -45,7 +45,7 @@ printf -- '%s\n' "Creating \"${CONTAINER_NAME:?}\" container..."
--shm-size 2g \
--publish 3322:3322/tcp \
--publish 3389:3389/tcp \
${CONTAINER_DEVICES} \
${CONTAINER_DEVICES?} \
"${IMAGE_NAME:?}" "$@" >/dev/null
printf -- '%s\n\n' 'Done!'