Skip to content

Commit e421ad2

Browse files
authored
Fix send-command to work on arm64 (#328)
1 parent 63f2ff9 commit e421ad2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/send-command

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/bin/bash
22

33
if [[ $* ]]; then
4-
if proc=$(find /proc -mindepth 2 -maxdepth 2 -name exe -lname '/data/bedrock_server-*' -printf '%h' -quit); then
4+
# On arm64, the process exe is actually box64 since it in turn wraps the bedrock_server executable
5+
if proc=$(find /proc -mindepth 2 -maxdepth 2 -name exe \( -lname '/data/bedrock_server-*' -o -lname /usr/local/bin/box64 \) -printf '%h' -quit); then
56
if [[ $proc ]]; then
67
echo "$@" > "$proc/fd/0"
78
else

0 commit comments

Comments
 (0)