This commit is contained in:
Ahurac 2024-03-26 10:17:36 +01:00
parent 7611715fbe
commit 3ff46199f4

View file

@ -1,5 +1,5 @@
#!/usr/bin/env sh #!/usr/bin/env bash
# version=0.11.0 set -x
# Re-exec the script as qemu via sudo (only if needed) # Re-exec the script as qemu via sudo (only if needed)
[ "$(whoami)" != qemu ] && exec sudo -E -H -u qemu -- "$0" "$@" [ "$(whoami)" != qemu ] && exec sudo -E -H -u qemu -- "$0" "$@"