remove useless variable cleanup
This commit is contained in:
parent
fdfff22ae0
commit
bad7aba7ee
1 changed files with 0 additions and 11 deletions
11
pizza.sh
11
pizza.sh
|
@ -85,17 +85,6 @@ function arraytio { # im funny portmantaus are never bad
|
|||
MEASURE[$INDEX]=$(echo "scale = 2; ($RATIO*$SIZE)/1" | bc -l) # we have to divide by 1 to actually apply the scale
|
||||
echo ${INGREDIENT[$INDEX]}: ${MEASURE[$INDEX]}g # actually print the calculated number with label for each INDEX
|
||||
done
|
||||
|
||||
# cleanup
|
||||
unset INDEX
|
||||
unset RATIO
|
||||
unset SIZE
|
||||
unset FSI
|
||||
unset AREA
|
||||
unset WIDTH
|
||||
unset LENGTH
|
||||
unset SQUAREPAN
|
||||
unset DFSI
|
||||
}
|
||||
|
||||
case $1 in # this parses the first argument (and actually calls our main functions), the units need to be removed before bc will accept it
|
||||
|
|
Loading…
Add table
Reference in a new issue