...

Text file src/go.formulabun.club/srb2kart.sh

Documentation: go.formulabun.club

     1#!/bin/bash
     2
     3cd /usr/games/SRB2Kart || exit
     4
     5DIRSTRUCTURE=$(find /addons -type d -regex "^.*/[0-9]+[^/]*$")
     6ADDONS=$(find /addons -type f,l | sort)
     7
     8if [ -n "$DIRSTRUCTURE" ]; then
     9  echo "srb2kart Docker | Using directory order as load order"
    10  /usr/bin/srb2kart -dedicated -file $ADDONS $*
    11else
    12  echo "srb2kart Docker | Using command line arguments as load order"
    13  /usr/bin/srb2kart -dedicated $*
    14fi

View as plain text