mirror of
https://github.com/Matir/skel.git
synced 2026-09-22 12:56:56 -07:00
Script fixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user