From 1373be1bc847158e304e33adc04ce5a46865a369 Mon Sep 17 00:00:00 2001 From: simono41 Date: Mon, 16 Jul 2018 04:54:40 +0200 Subject: [PATCH] set-fix --- arch-install | 2 +- make_mksquashfs-auto.sh | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/arch-install b/arch-install index c8edee4..3e9f04c 100755 --- a/arch-install +++ b/arch-install @@ -942,7 +942,7 @@ function abfrage() { for wort in ${extraparameter} do echo "$wort" - set ${wort} y + export ${wort}="y" done # Ausgaben diff --git a/make_mksquashfs-auto.sh b/make_mksquashfs-auto.sh index 4eadbbb..588293b 100755 --- a/make_mksquashfs-auto.sh +++ b/make_mksquashfs-auto.sh @@ -24,11 +24,12 @@ shift echo "Hallo Echo" -# for-schleife -for wort in "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9" +# while-schleife +while (( "$#" )) do - echo "$wort" - set ${wort} y + echo ${1} + export ${1}="y" + shift done sleep 5