diff --git a/src/display.sh b/src/display.sh index d1ab516..abe7509 100644 --- a/src/display.sh +++ b/src/display.sh @@ -3,11 +3,13 @@ set -Eeuo pipefail # Docker environment variables +: "${VGA:=""}" # VGA adaptor : "${DISPLAY:="web"}" # Display type -: "${VGA:="virtio-gpu"}" # VGA adaptor if [[ "${BOOT_MODE,,}" == "windows" ]]; then - [[ "$VGA" == "virtio-gpu" ]] && VGA="ramfb" + [ -z "$VGA" ] && VGA="ramfb" +else + [ -z "$VGA" ] && VGA="virtio-gpu" fi case "${DISPLAY,,}" in