Files
glest-source/mk/linux/clone-data.sh
2019-03-08 11:45:31 +01:00

17 lines
319 B
Bash
Executable File

#!/bin/bash
echo "Downloading game data..."
currentDir=$PWD
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
cd $DIR
mkdir build
cd build
git clone https://github.com/Glest/glest-data.git data
cd ..
if [ `id -u`'x' == '0x' ] || [ "$1" == "--manually" ]; then
chmod -R 777 build/
fi
cd $currentDir