From: Cache do Fluxo Date: Tue, 15 Nov 2016 12:02:49 +0000 (-0200) Subject: Fix custom syncer X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=fdc2ed89ec245205da28e4538349c93ddda8ea53;p=cache.git Fix custom syncer --- diff --git a/.sync-media/custom b/.sync-media/custom index 2ef4b58..325ab69 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)" ] || [ "$(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