Apache Lucene open-source search software
SOLR-623: fix snapcleaner for OSX
Yonik Seeley3b7621142e42
diff --git a/src/scripts/snapcleaner b/src/scripts/snapcleanerindex 41af0ced86b..0111c2c1d89 100755--- a/src/scripts/snapcleaner+++ b/src/scripts/snapcleaner@@ -91,7 +91,13 @@ fifunction remove{- syncing=`ps -fwwwu ${user}|grep -w rsync|grep -v grep|grep -w $1`+ if [[ "${OS}" == "Darwin" ]]+ then+ syncing=`ps -www -U ${user} |grep -w rsync|grep -v grep|grep -w $1`+ else+ syncing=`ps -fwwwu ${user}|grep -w rsync|grep -v grep|grep -w $1`+ fi+if [[ -n $syncing ]]thenlogMessage $1 not removed - rsync in progress