From 99b1064d546e4060bded0a9bdd1ffe1f846b2b58 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Thu, 27 Nov 2014 12:36:30 +0100 Subject: [PATCH] Syncing files instead of forcing them to mega. --- circle.yml | 4 ++-- package.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/circle.yml b/circle.yml index a0ffda0..3780717 100644 --- a/circle.yml +++ b/circle.yml @@ -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/ diff --git a/package.sh b/package.sh index 06bb494..4eb6a21 100755 --- a/package.sh +++ b/package.sh @@ -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