X-Git-Url: https://git.slaskete.net/einar-bin/blobdiff_plain/a8e53fff45d7885bf3a8f2d1df47f9b48a2651c8..ede3c9afce403ba9cd21a0112dc55a751fc049cf:/middag.sh diff --git a/middag.sh b/middag.sh index 9f2b66b..832b053 100755 --- a/middag.sh +++ b/middag.sh @@ -6,46 +6,41 @@ Prep=( 'Grillet' 'Gratinert' 'Bakt' + 'Fritert' ) Meat=( 'laks' - 'biff' + 'indrefilet av svin' + 'indrefilet av storfe' 'kylling' + 'kalkun' 'grøt' + 'torsk' + 'kotelett' + 'løvbiff' ) Sides=( 'poteter' 'ris' - 'wokgrønsaker' - 'kokte grønsaker' + 'wokgrønnsaker' + 'kokte grønnsaker' 'fries' 'salat' + 'couscous' + 'søtpotetfries' + 'risotto' + 'potetmos' ) -PrepCount=0 -while [ "x${Prep[PrepCount]}" != "x" ]; do - ((PrepCount++)) -done - -MeatCount=0 -while [ "x${Meat[MeatCount]}" != "x" ]; do - ((MeatCount++)) -done - -SideCount=0 -while [ "x${Sides[SideCount]}" != "x" ]; do - ((SideCount++)) -done - PrepN=$RANDOM -(( PrepN %= $PrepCount )) +(( PrepN %= ${#Prep[@]} )) MeatN=$RANDOM -(( MeatN %= $MeatCount )) +(( MeatN %= ${#Meat[@]} )) SideN=$RANDOM -(( SideN %= $SideCount )) +(( SideN %= ${#Sides[@]} )) echo "${Prep[PrepN]} ${Meat[MeatN]} med ${Sides[SideN]}"