summaryrefslogtreecommitdiff
path: root/rerun.sh
blob: fa4a75d96c2fa380e953699b8b504a2daedc975c (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash
{
	start=`date -u +%s`
	./haxserv
	uptime=$((`date -u +%s` - $start))
	if (($uptime < 10)); then
		sleep $((10 - $uptime))
	fi

	exec "$0" "$@"
}