Split script in two file

This commit is contained in:
mathusummut
2018-11-10 14:14:26 +01:00
parent 47bab8d0df
commit 39ae9e1b08
5 changed files with 24 additions and 17 deletions

16
mk/linux/clone-data.sh Normal file
View File

@@ -0,0 +1,16 @@
#!/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/ZetaGlest/zetaglest-data.git data
cd ..
if [ `id -u`'x' == '0x' ] || [ "$1" == "--manually" ]; then
chmod -R 777 build/
fi
cd $currentDir