summarylogtreecommitdiffstats
path: root/terraria-server
blob: ad320ec435f36ef4eaeccfad485fd771852b5686 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
export MONO_IOMAP=all
arch=$(uname -m)
args=("$@")
for (( i=0; i<$#; ++i ))
do
        # For every existing file, get the real path for the binary.
        if [ -f ${args[$i]} ]
        then
                args[$i]=$(realpath ${args[$i]});
        fi
done
/etc/terraria-server/TerrariaServer.bin.${arch} "${args[@]}"