diff --git a/src/bin_client/tezos-init-sandboxed-client.sh b/src/bin_client/tezos-init-sandboxed-client.sh index 36c583f7c..9816a2875 100755 --- a/src/bin_client/tezos-init-sandboxed-client.sh +++ b/src/bin_client/tezos-init-sandboxed-client.sh @@ -224,7 +224,9 @@ main () { local bin_dir="$(cd "$(dirname "$0")" && echo "$(pwd -P)/")" if [ $(basename "$bin_dir") = "bin_client" ]; then - local_client="${local_client:-$bin_dir/../../_build/default/src/bin_client/main.exe}" + local_client="${local_client:-$bin_dir/../../_build/default/src/bin_client/main.exe}" + else + local_client="${local_client:-tezos-client}" fi if [ $# -lt 1 ] || [ "$1" -le 0 ] || [ 10 -le "$1" ]; then diff --git a/src/bin_node/tezos-sandboxed-node.sh b/src/bin_node/tezos-sandboxed-node.sh index 65329f86d..b14bd5c0e 100755 --- a/src/bin_node/tezos-sandboxed-node.sh +++ b/src/bin_node/tezos-sandboxed-node.sh @@ -22,10 +22,25 @@ start_sandboxed_node() { peers+=("127.0.0.1:$peer_port") done peers+=("--closed") - node="${local_node:-tezos-node}" - sandbox_file="${sandbox_file:-$script_dir/sandbox.json}" + node="${local_node}" sandbox_param="--sandbox=$sandbox_file" + if ! [ -f "$sandbox_file" ]; then + cat > "$sandbox_file" <