s/svg/sgv/g - serum glucose value typo

This commit is contained in:
Ben West
2014-07-14 17:08:19 -07:00
parent 8485027c93
commit b35853bcaa
5 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
#!/bin/bash
SVG=$1
SGV=$1
DIRECTION=$2
AT=$3
OPTS=""
@@ -12,7 +12,7 @@ UNIX=$(date +%s $OPTS)
(
cat <<EOF
{ "svg": $SVG,
{ "sgv": $SGV,
"device": "test",
"direction": "$DIRECTION",
"dateString": "$ISO",
+2 -2
View File
@@ -5,9 +5,9 @@ INPUT=$1
(
echo '['
first=""
cat $1 | while read dateString date svg direction device ; do
cat $1 | while read dateString date sgv direction device ; do
test -n "$first" && printf "," || printf -v first "nope"
./bin/create_svg.sh $svg $direction $dateString
./bin/create_svg.sh $sgv $direction $dateString
echo
done