Set of files and scripts for Embedded Lab 1
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

19 lines
294 B

  1. #!/bin/sh -
  2. set -x
  3. if [ ! -f "test.json" ]; then
  4. echo no test jail is running
  5. exit 1
  6. fi
  7. json="$(cat test.json)"
  8. keys=$(echo "$json" | jq --raw-output 'keys[]')
  9. for i in $keys; do
  10. eval export $i='$(echo "$json" | jq --raw-output .[\"$i\"])'
  11. done
  12. sh -x ./board_script release cora-1 jmg