From 6a34004941305b5412808d824d6bd8111f2ccf67 Mon Sep 17 00:00:00 2001 From: simono41 Date: Sat, 7 Apr 2018 18:43:54 +0200 Subject: [PATCH] fix --- arch-install | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch-install b/arch-install index d300d6f..8166466 100755 --- a/arch-install +++ b/arch-install @@ -7,12 +7,15 @@ echo "Version : DI 27. Feb 22:52:41 CET 2017" WEBADDRESS="https://github.com/simono41/SpectreOS.git" repo="SpectreOS" user="user1" +version="${2}" -[[ -n "${2}" ]] && version="${2}" || version=voll +[[ -z "${version}" ]] && version="voll" +[[ -z "${username}" ]] && username="user1" +[[ -z "${userpass}" ]] && userpass="user1" if [[ $EUID -ne 0 ]]; then echo "This script must be run as root" 1>&2 - sudo $0 2>&1 | tee /home/user1/install.log + sudo $0 $1 $2 $3 $4 $5 $6 $7 $8 $9 2>&1 | tee /home/user1/install.log exit 0 fi echo "Logged in as root"