Syncing files instead of forcing them to mega.

This commit is contained in:
Faerbit 2014-11-27 12:36:30 +01:00
parent f2b960637a
commit 99b1064d54
2 changed files with 4 additions and 4 deletions

View File

@ -28,5 +28,5 @@ deployment:
master:
branch: master
commands:
- megacmd -force put MarbleGame_Windows.zip mega:/GameBuilds/
- megacmd -force put MarbleGame_Linux.zip mega:/GameBuilds/
- megacmd sync MarbleGame_Windows.zip mega:/GameBuilds/
- megacmd sync MarbleGame_Linux.zip mega:/GameBuilds/

View File

@ -30,9 +30,9 @@ then
mkdir "MarbleGame_${platform^}"
cp -r binaries Levels Shader "MarbleGame_${platform^}"
zip -r "MarbleGame_${platform^}.zip" "MarbleGame_${platform^}"
if [ hash megacmd 2>/dev/null && $2 == "mega" ]
if hash megacmd 2>/dev/null && [[ "$2" == "mega" ]]
then
megacmd -force put "MarbleGame_${platform^}.zip" mega:/GameBuilds/
megacmd sync "MarbleGame_${platform^}.zip" mega:/GameBuilds/
fi
rm -rf "MarbleGame_${platform^}"
fi