Script fixes

This commit is contained in:
David Tomaschik
2026-08-26 16:56:15 -07:00
parent 3666115090
commit ae111baa2b
8 changed files with 62 additions and 29 deletions

View File

@@ -1,11 +1,13 @@
#!/bin/bash
set -e
if [ $# -lt 1 ] ; then
echo "Usage: $0 <kvm|vbox>" >&2
exit 1
fi
if [ `whoami` != "root" ] ; then
if [ "$(id -u)" -ne 0 ] ; then
if which sudo >/dev/null 2>&1 ; then
sudo "$0" "$@"
exit