blob: 5d0fd493cb2015824ef8c2bd7ab9e2b8920cf084 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
# scale triggered store
WEIGHT="$1"
[ "${WEIGHT}" ] || { echo "First argument must be an amount." >&2; exit 1; }
[ "${WEIGHT}" -gt 0 ] || { echo "Amount must be larger than zero." >&2; exit 1; }
cd $HOME/mat/matplan/
if (grep -q v currently_cooking); then
PRINT_WITH_LOGO=y ./mat storeportion `cat currently_cooking|sed 's/v//'` "${WEIGHT}" hemfrys
else
./mat storeportion `cat currently_cooking|sed 's/v//'` "${WEIGHT}" hemfrys
fi
|