]> gitweb.fluxo.info Git - cache.git/commitdiff
Custom sync: enhance empty folder check
authorCache do Fluxo <cache@fluxo.info>
Fri, 11 Nov 2016 14:43:26 +0000 (12:43 -0200)
committerCache do Fluxo <cache@fluxo.info>
Fri, 11 Nov 2016 14:43:26 +0000 (12:43 -0200)
.sync-media/custom

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