From: Cache do Fluxo Date: Fri, 11 Nov 2016 14:43:26 +0000 (-0200) Subject: Custom sync: enhance empty folder check X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=0e9bcce75c6f2d60c2881e7987954fa177d2bfb3;p=cache.git Custom sync: enhance empty folder check --- diff --git a/.sync-media/custom b/.sync-media/custom index 0ae38d2..2ef4b58 100755 --- a/.sync-media/custom +++ b/.sync-media/custom @@ -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