web-wallet/example/backend/runandwatch.sh

8 lines
185 B
Bash
Executable file

#!/bin/bash
# mainly because the electrum https calls seems to crash a fair amount
until go run .; do
echo "Backend crashed with exit code $?. Respawning.." >&2
sleep 1
done