X-Git-Url: https://git.slaskete.net/einar-bin/blobdiff_plain/a8e53fff45d7885bf3a8f2d1df47f9b48a2651c8..refs/heads/master:/middag.sh diff --git a/middag.sh b/middag.sh index 9f2b66b..ee3fbe9 100755 --- a/middag.sh +++ b/middag.sh @@ -6,13 +6,23 @@ Prep=( 'Grillet' 'Gratinert' 'Bakt' + 'Fritert' + 'Dampet' + 'Posjert' ) Meat=( 'laks' - 'biff' + 'indrefilet av svin' + 'indrefilet av storfe' 'kylling' + 'kalkun' 'grøt' + 'torsk' + 'kotelett' + 'løvbiff' + 'sau' + 'egg' ) Sides=( @@ -21,31 +31,27 @@ Sides=( 'wokgrønsaker' 'kokte grønsaker' 'fries' + 'smør, sukker og kanel' '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[@]} )) + +if (( RANDOM % 4 == 0 )); then + Bacon=" og bacon" +else + Bacon="" +fi -echo "${Prep[PrepN]} ${Meat[MeatN]} med ${Sides[SideN]}" +echo "${Prep[PrepN]} ${Meat[MeatN]} med ${Sides[SideN]}${Bacon}"