#!/usr/bin/env bash arch=$(uname -m) if [ "$arch" == 'x86_64' ]; then arch="x86_64" else arch="i386" fi file=`basename "$0"` if [ "$file" == 'openarena' ]; then file='openarena' else file='oa_ded' fi cd '/opt/openarena' # Comment by syrjala # openarena-runner.sh should pass on the command line options. I just banged my # head against the wall for a while trying to figure out why my command line # options didn't do anything. # So, here it is "./${file}.${arch}" $@