Created
November 29, 2013 02:18
-
-
Save jorgenpt/7700731 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DIR=$(cd "$(dirname "$0")"; pwd) | |
MONO=`which mono` | |
if [ ! -z "$MONO" ]; then | |
TXT=`${MONO} -V` | |
VERSION="${TXT#"${TXT%%[[:digit:]]*}"}" | |
VERSION="${VERSION%%[^[:digit:].]*}" | |
VERSION="${VERSION//[!0-9\.]/}" | |
fi | |
if [[ "$VERSION" < "2.10.11" ]]; then | |
xterm -e sudo apt-get install mono-complete | |
fi | |
mono "$DIR/Hammerwatch.exe" $* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment