From a18e69cb8c52af001cc21630c90b504adc37b99d Mon Sep 17 00:00:00 2001 From: simono41 Date: Tue, 31 Jul 2018 08:18:56 +0200 Subject: [PATCH] fix --- arch-install | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/arch-install b/arch-install index a703d34..5a3cfee 100755 --- a/arch-install +++ b/arch-install @@ -38,6 +38,7 @@ if ! [ -z "${2}" ]; then startparameter="${startparameter}${1} " shift done + start=root fi function minimalinstallation() { @@ -1170,14 +1171,23 @@ function abfrage() { # Begin the Script!!! - -# for-schleife -for wort in ${1} -do - echo "$wort" - export ${wort%=*}=${wort#*=} - echo "Parameter ${wort%=*} = ${wort#*=}" -done +if [ "${start}" == "root" ]; then + # for-schleife + for wort in ${startparameter} + do + echo "$wort" + export ${wort%=*}=${wort#*=} + echo "Parameter ${wort%=*} = ${wort#*=}" + done +else + # for-schleife + for wort in ${1} + do + echo "$wort" + export ${wort%=*}=${wort#*=} + echo "Parameter ${wort%=*} = ${wort#*=}" + done +fi if [ "${fastinstall}" == "y" ] && [ "${fastinstallnext}" != "y" ]; then gitclone