mirror of
https://github.com/theupriser/steamify-cachyos-dev.git
synced 2026-10-05 12:45:56 +02:00
fix: vminstall.sh is headless in CI (no display for QEMU's GTK window)
Sync git.upriser.nl mirror / sync (push) Skipped
Sync git.upriser.nl mirror / sync (push) Skipped
This commit is contained in:
1 parent
459832c3f5
commit
e929444399
1 file changed
+1
@@ -19,6 +19,7 @@
|
|||||||
# The VM's user and key are recorded in $VM_DIR (vm-user, ssh-key) for the
|
# The VM's user and key are recorded in $VM_DIR (vm-user, ssh-key) for the
|
||||||
# other scripts. Never touches your existing SSH keys or ~/.ssh/known_hosts.
|
# other scripts. Never touches your existing SSH keys or ~/.ssh/known_hosts.
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
[[ -n "${CI:-}" ]] && export VM_HEADLESS=1 # no display in CI (QEMU fails with "OpenGL is not supported by the display")
|
||||||
here="$(cd "$(dirname "$0")" && pwd)"
|
here="$(cd "$(dirname "$0")" && pwd)"
|
||||||
repo="$(cd "$here/.." && pwd)"
|
repo="$(cd "$here/.." && pwd)"
|
||||||
[[ -n "${VM_USER:-}" ]] || VM_USER="$(id -un)"
|
[[ -n "${VM_USER:-}" ]] || VM_USER="$(id -un)"
|
||||||
|
|||||||
Reference in new issue
Block a user