Skip to content

Commit

Permalink
JQ bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Mick Hellstrom committed Apr 11, 2018
1 parent 6840e37 commit 2edcc7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions ArduinoIDE/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ then
exit 1
fi

echo "# Update $JSON with SHA $SHA"
jq '.packages[0].platforms[0].checksum="'$SHA'"' < $TEMPLATE > $JSON

echo "# Update $JSON with size $SIZE"
jq '.packages[0].platforms[0].size="'$SIZE'"' < $TEMPLATE > $JSON
echo "# Update $JSON with SIZE:$SIZE and SHA:$SHA"
jq '.packages[0].platforms[0].checksum="'$SHA'" | .packages[0].platforms[0].size="'$SIZE'"' < $TEMPLATE > $JSON

exit 0
2 changes: 1 addition & 1 deletion ArduinoIDE/package_mickmake_index.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"online": "https://mickmake.com/"
},
"url": "https://github.com/MickMake/SuperDuper/raw/master/ArduinoIDE/mickmake-samd-1.0.0.tar.bz2",
"checksum": "SHA-256:%%SHA%%",
"checksum": "SHA-256:a2d4375aa1a549067318999fc2a1d8a375f376986a9c2d06e3d76a978fb66839",
"version": "1.0.0",
"architecture": "samd",
"archiveFileName": "mickmake-samd-1.0.0.tar.bz2",
Expand Down

0 comments on commit 2edcc7e

Please sign in to comment.