pull/8/head
Bohan Yang 7 years ago
parent 01bf439c94
commit e368cbbfe3
  1. 8
      netboot.sh

@ -18,6 +18,10 @@
set -e set -e
command_exists() {
$sudo command -v "$@" > /dev/null 2>&1
}
user="$(id -un 2>/dev/null || true)" user="$(id -un 2>/dev/null || true)"
sudo='' sudo=''
@ -29,10 +33,6 @@ if [ "$user" != 'root' ]; then
fi fi
fi fi
command_exists() {
$sudo command -v "$@" > /dev/null 2>&1
}
while [ $# -gt 0 ]; do while [ $# -gt 0 ]; do
case $1 in case $1 in
--template) --template)

Loading…
Cancel
Save