summarylogtreecommitdiffstats
path: root/terraria-server
blob: 1bfc6ef8b1e91e780d512759eb900060eab2552d (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
mono /opt/terraria-server/TerrariaServer.exe "${args[@]}"