#!/bin/bash -e ## tools/run [ARGS...] if [ -z ${HI_DEV+x} ]; then tools/build-ui cargo run -- "$@" else npm run dev -- --host 192.168.68.57 & PIDS[0]=$! cargo run -- "$@" & PIDS[1]=$! trap "kill ${PIDS[*]}" SIGINT wait fi