Untitled

 avatar
unknown
plain_text
4 years ago
766 B
3
Indexable
ProjectName='Project3042';
LevelName='world';
ServerIP='test.jerryio.com';
ServerLocation="ftps://UserB:TMJP3@$ServerIP/";
LocalWorldSaves='./saves/';
DistLocation='./dist/';
Version='1.2';

##########################################################

SrcOverworld="$LocalWorldSaves$ServerIP/$LevelName/";
SrcNether="$LocalWorldSaves$ServerIP/${LevelName}_nether/";
RemoteOverworld="$ServerLocation$LevelName/";
RemoteNether="$ServerLocation${LevelName}_nether/";
DistFolder="$DistLocation$ProjectName v$Version";
DistMapFolder="$DistFolder/$ProjectName World v$Version";

mkdir -p "$LocalWorldSaves";
mkdir -p "$DistMapFolder";

wget -r --no-parent "$RemoteOverworld";
wget -r --no-parent "$RemoteNether";

# cp read me;
cp -a "$SrcOverworld/data" "$DistMapFolder";
Editor is loading...