mirror of
https://github.com/kaboomserver/buildpack.git
synced 2024-09-28 19:23:01 +00:00
Fix bug introduced when converting to POSIX
This commit is contained in:
parent
ab602bc335
commit
ccd2cf782d
|
@ -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 &
|
||||
|
||||
|
|
Loading…
Reference in a new issue