git.slaskete.net
/
einar-bin
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for uploading clipboard image as jpeg
[einar-bin]
/
middag.sh
diff --git
a/middag.sh
b/middag.sh
index 9f2b66b1a27bbe73d4f78d7c09d7aaf958603858..832b0539268213b62feab5ded9d132619eb6b9b2 100755
(executable)
--- a/
middag.sh
+++ b/
middag.sh
@@
-6,46
+6,41
@@
Prep=(
'Grillet'
'Gratinert'
'Bakt'
'Grillet'
'Gratinert'
'Bakt'
+ 'Fritert'
)
Meat=(
'laks'
)
Meat=(
'laks'
- 'biff'
+ 'indrefilet av svin'
+ 'indrefilet av storfe'
'kylling'
'kylling'
+ 'kalkun'
'grøt'
'grøt'
+ 'torsk'
+ 'kotelett'
+ 'løvbiff'
)
Sides=(
'poteter'
'ris'
)
Sides=(
'poteter'
'ris'
- 'wokgrønsaker'
- 'kokte grønsaker'
+ 'wokgrøn
n
saker'
+ 'kokte grøn
n
saker'
'fries'
'salat'
'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=$RANDOM
-(( PrepN %= $
PrepCount
))
+(( PrepN %= $
{#Prep[@]}
))
MeatN=$RANDOM
MeatN=$RANDOM
-(( MeatN %= $
MeatCount
))
+(( MeatN %= $
{#Meat[@]}
))
SideN=$RANDOM
SideN=$RANDOM
-(( SideN %= $
SideCount
))
+(( SideN %= $
{#Sides[@]}
))
echo "${Prep[PrepN]} ${Meat[MeatN]} med ${Sides[SideN]}"
echo "${Prep[PrepN]} ${Meat[MeatN]} med ${Sides[SideN]}"