initial import
This commit is contained in:
28
vegastrike/vs
Executable file
28
vegastrike/vs
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
# This is a small wrapper that lets VegaStrike - Upon the Coldest Sea
|
||||
# run from seemingly anywhere
|
||||
set -e
|
||||
|
||||
VEGASTRIKE_LOCAL_SHARE_DIR="/usr/local/share/games/vegastrike"
|
||||
VEGASTRIKE_SHARE_DIR="/usr/share/games/vegastrike"
|
||||
|
||||
#Let's keep a log of the console
|
||||
if [ -f ~/.vegastrike/console.log ]; then
|
||||
mv -f ~/.vegastrike/console.log ~/.vegastrike/console.bak
|
||||
fi
|
||||
if [ -f ~/.vegastrike/console_err.log ]; then
|
||||
mv -f ~/.vegastrike/console_err.log ~/.vegastrike/console_err.bak
|
||||
fi
|
||||
|
||||
echo "Starting Vega Strike..."
|
||||
echo ""
|
||||
|
||||
if [ -d "${VEGASTRIKE_LOCAL_SHARE_DIR}" ]; then
|
||||
vegastrike -d"${VEGASTRIKE_LOCAL_SHARE_DIR}" "$1"
|
||||
elif [ -d "${VEGASTRIKE_SHARE_DIR}" ]; then
|
||||
vegastrike -d"${VEGASTRIKE_SHARE_DIR}" "$1"
|
||||
else
|
||||
echo "Unknown Game Asset Data Location."
|
||||
echo "Do you have the game assets installed?"
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user