From 099492318b5a6782c1c23c4201fcafb252c5c375 Mon Sep 17 00:00:00 2001 From: mathias Date: Tue, 6 Aug 2019 19:23:07 +0300 Subject: [PATCH] Should work, hopefully... --- bin/start | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/start b/bin/start index 2c891a6..4d208f3 100755 --- a/bin/start +++ b/bin/start @@ -36,7 +36,7 @@ tmux new -d -s alivecheck "set -x; while true; do sleep 12 DATE_PARSE=$(tail -1 latest.log | grep -oP '(?<=\[).*?(?=\])' | head -1 | date -f - +%s) echo $DATE_PARSE - DATE=${DATE_PARSE:-9999999999} + DATE=$${DATE_PARSE:=$(date +%s)} echo $DATE if [ "$(env printf '\xFE' | nc -w 5 localhost 25565 | wc -m)" -eq 1 ] || [ "$(( $(date +%s) - $DATE ))" -gt 180 ]; then