summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGordian Edenhofer2016-12-29 14:04:41 +0100
committerGordian Edenhofer2016-12-29 14:04:41 +0100
commitd39462710d3eb0f8eeb38f28bd88f8310ef7c40b (patch)
tree8a1a0f693e3c00656f7d50a762141e5873bee00a
parenta11e065f9f786fff7434442243ce501a4fee80ba (diff)
downloadaur-d39462710d3eb0f8eeb38f28bd88f8310ef7c40b.tar.gz
upgpkg: minecraft-server 1.11.2-1
Tweak proceeding sed command instead of piping to awk.
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD2
-rwxr-xr-xminecraftd.sh2
3 files changed, 3 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 903e449742e..13d4d04881f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -29,6 +29,6 @@ pkgbase = minecraft-server
sha512sums = 19ee3646bfbace353b65c0373594edb654de11c9671f29cebad3b31109f29f94ade1d529d9f409b0989c376bef9b451585b22a1e0ac4295fcc92d9565f808418
sha512sums = b0124c8cd90a4f9901a9105c0ee51eb3e7db944d106cf30fd91b29794178e650d3a21c3be3c8e0cb454b2cef6f27541c44e7a5e77a1d50f89b9152363de51d28
sha512sums = 8a2348464c6ec988c5edc755f482e3bfc0dd1aad65c1f82d16547ddea8abf130a773404187a280e23308a521c8732a90825683a1c6ee6fbb8ff30e53834fe75b
- sha512sums = 3024447e374d33fb9f93f1edd9b9553d8e4d4600637f9638d894b2d6c28d9b0727b7025f7cadcdfd675f0b11c511ddd07188c40bd8f7e2bcba27f07de1e48fc2
+ sha512sums = 503a5555021e42ed15fae8ca32f286142640b7d2c1b2c001d346c1e9010952f1154a3561a3ec7eb8a8736086bf2f15ffaec2c8388aa27332b675b66b9aa7e0c4
pkgname = minecraft-server
diff --git a/PKGBUILD b/PKGBUILD
index a4effaae070..03c97a63282 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -27,7 +27,7 @@ sha512sums=('f147d99832e2e12f04cc56e28abe33c5acf7d3269631eb3d75aa18108425994d019
'19ee3646bfbace353b65c0373594edb654de11c9671f29cebad3b31109f29f94ade1d529d9f409b0989c376bef9b451585b22a1e0ac4295fcc92d9565f808418'
'b0124c8cd90a4f9901a9105c0ee51eb3e7db944d106cf30fd91b29794178e650d3a21c3be3c8e0cb454b2cef6f27541c44e7a5e77a1d50f89b9152363de51d28'
'8a2348464c6ec988c5edc755f482e3bfc0dd1aad65c1f82d16547ddea8abf130a773404187a280e23308a521c8732a90825683a1c6ee6fbb8ff30e53834fe75b'
- '3024447e374d33fb9f93f1edd9b9553d8e4d4600637f9638d894b2d6c28d9b0727b7025f7cadcdfd675f0b11c511ddd07188c40bd8f7e2bcba27f07de1e48fc2')
+ '503a5555021e42ed15fae8ca32f286142640b7d2c1b2c001d346c1e9010952f1154a3561a3ec7eb8a8736086bf2f15ffaec2c8388aa27332b675b66b9aa7e0c4')
_game="minecraft"
_server_root="/srv/minecraft"
diff --git a/minecraftd.sh b/minecraftd.sh
index a9cdeb5c555..8f65fd41ff3 100755
--- a/minecraftd.sh
+++ b/minecraftd.sh
@@ -113,7 +113,7 @@ idle_server_daemon() {
screen -S "${SESSION_NAME}" -Q select . > /dev/null
if [[ $? -eq 0 ]]; then
# Game server is up and running
- if [[ "$(screen -S "${SESSION_NAME}" -ls | sed -n 2p | awk '{ print $2 }')" == "(Attached)" ]]; then
+ if [[ "$(screen -S "${SESSION_NAME}" -ls | sed -n "s/.*${SESSION_NAME}\s\+//gp")" == "(Attached)" ]]; then
# An administrator is connected to the console, pause player checking
echo "An admin is connected to the console. Pause player checking."
# Check for active player