Someone forgot to reset self after assigning it for a function call.
[divverent/nexuiz.git] / nexuiz-linux.sh
1 #!/bin/sh
2
3 path=`dirname ${0}`
4 link=`readlink ${0}`
5
6 [ -n "$link" ] && path=`dirname $link`
7 cd "$path"
8
9 case "$(uname -m)" in
10   x86_64)       nexuiz="nexuiz-linux-x86_64-sdl" ;;
11   *)            nexuiz="nexuiz-linux-686-sdl" ;;
12 esac
13
14 exec ./$nexuiz "${@}"