aboutsummaryrefslogtreecommitdiff
path: root/.sync-media/custom
diff options
context:
space:
mode:
authorCache do Fluxo <cache@fluxo.info>2016-11-15 10:02:49 -0200
committerCache do Fluxo <cache@fluxo.info>2016-11-15 10:02:49 -0200
commitfdc2ed89ec245205da28e4538349c93ddda8ea53 (patch)
tree6c7f62bdf55a103ffaabb6af1a48db0ea40697a4 /.sync-media/custom
parent0e9bcce75c6f2d60c2881e7987954fa177d2bfb3 (diff)
downloadcache-fdc2ed89ec245205da28e4538349c93ddda8ea53.tar.gz
cache-fdc2ed89ec245205da28e4538349c93ddda8ea53.tar.bz2
Fix custom syncer
Diffstat (limited to '.sync-media/custom')
-rwxr-xr-x.sync-media/custom2
1 files changed, 1 insertions, 1 deletions
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