]> gitweb.fluxo.info Git - cache.git/commitdiff
Fix custom syncer
authorCache do Fluxo <cache@fluxo.info>
Tue, 15 Nov 2016 12:02:49 +0000 (10:02 -0200)
committerCache do Fluxo <cache@fluxo.info>
Tue, 15 Nov 2016 12:02:49 +0000 (10:02 -0200)
.sync-media/custom

index 2ef4b5801cd9eeb116941d00e9bf6736ec836f7f..325ab699511507720aae65ff60bb91d02ce5d803 100755 (executable)
@@ -20,7 +20,7 @@ elif [ ! -d "$DEST" ]; then
 fi
 
 # Check if there are assets
-if [ ! -z "$(ls -A $ASSETS)" ] || [ "$(ls -A $ASSETS)" != ".empty" ]; then
+if [ ! -z "$(ls -A $ASSETS)" ] && [ "$(ls -A $ASSETS)" != ".empty" ]; then
   # Then sync
   unison $ASSETS $DEST -auto -logfile /dev/null
 fi