aboutsummaryrefslogtreecommitdiff
path: root/.sync-media/custom
diff options
context:
space:
mode:
authorCache do Fluxo <cache@fluxo.info>2016-11-11 12:43:26 -0200
committerCache do Fluxo <cache@fluxo.info>2016-11-11 12:43:26 -0200
commit0e9bcce75c6f2d60c2881e7987954fa177d2bfb3 (patch)
tree84ea55230c735a96b75afca747d086d25f297117 /.sync-media/custom
parent26cd512aa7b8f5f9d7cbeaa4c7fd34641c030301 (diff)
downloadcache-0e9bcce75c6f2d60c2881e7987954fa177d2bfb3.tar.gz
cache-0e9bcce75c6f2d60c2881e7987954fa177d2bfb3.tar.bz2
Custom sync: enhance empty folder check
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 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