From 0e9bcce75c6f2d60c2881e7987954fa177d2bfb3 Mon Sep 17 00:00:00 2001 From: Cache do Fluxo Date: Fri, 11 Nov 2016 12:43:26 -0200 Subject: Custom sync: enhance empty folder check --- .sync-media/custom | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.sync-media') 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 -- cgit v1.2.3