summaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-01-10 20:37:44 +0100
committerChristian Pointner <equinox@spreadspace.org>2020-01-10 20:37:55 +0100
commit2f401f4bc835d1f5ec856d9d55e68b74ca51eebb (patch)
treecbd1aa5194f426cf8e5d2524960b3188b3a396b8 /install.sh
parentadd mac address parameter for vm network (diff)
helper scripts: optimize argument shifts
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/install.sh b/install.sh
index b4f2c187..764f23bc 100755
--- a/install.sh
+++ b/install.sh
@@ -5,11 +5,9 @@ if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]; then
exit 1
fi
name=$1
-shift
-distro=$1
-shift
-codename=$1
-shift
+distro=$2
+codename=$3
+shift 3
cd "${BASH_SOURCE%/*}"
source common/utils.sh