mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-10-08 13:17:13 +00:00
fix(minecraft/entrypoint): errata with jq syntax and mod dir
This commit is contained in:
1 parent
ae72f9ac70
commit
fff075cc68
1 file changed
+2
-2
@@ -75,9 +75,9 @@ if [[ "$MANIFEST" ]]; then
|
||||
case "X$MANIFEST" in
|
||||
X*.json)
|
||||
if [ -f "${MANIFEST}" ]; then
|
||||
MOD_DIR=${FTB_BASE_DIR:-/data/mods}
|
||||
MOD_DIR=${FTB_BASE_DIR:-/data}/mods
|
||||
echo "Starting manifest download..."
|
||||
cat "${MANIFEST}" | jq -r '$.files[] | (.projectID|tostring) + " " + (.fileID|tostring)'| while read -r p f
|
||||
cat "${MANIFEST}" | jq -r '.files[] | (.projectID|tostring) + " " + (.fileID|tostring)'| while read -r p f
|
||||
do
|
||||
if [ ! -f $MOD_DIR/${p}_${f}.jar ]
|
||||
then
|
||||
|
||||
Reference in new issue
Block a user