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