#!/bin/bash

# shellcheck source=start-utils
. "${SCRIPTS:-/}start-utils"
isDebugging && set -x

if ! SERVER=$(mc-image-helper github download-latest-asset \
  --output-directory=/data \
  --name-pattern="NanoLimbo-.+?(?<!-sources)\.jar" \
  Nan1t/NanoLimbo
  ); then
    logError "Failed to download NanoLimbo"
    exit 1
fi

export SERVER
export FAMILY=LIMBO

exec ${SCRIPTS:-/}start-setupMounts "$@"
