Fix bug introduced when converting to POSIX

This commit is contained in:
mathias 2019-03-08 20:21:20 +02:00
parent ab602bc335
commit ccd2cf782d

View file

@ -36,9 +36,8 @@ sleep 60
while true; do
sleep 120
if [ "$(echo -n -e '\xFE' | nc -w 5 localhost 25565 | wc -m)" -eq 0 ]; then
#kill -9 $(pgrep java)
echo "fail" > faillog
if [ "$(env printf '\xFE' | nc -w 5 localhost 25565 | wc -m)" -eq 0 ]; then
kill -9 $(pgrep java)
fi
done &