Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-623: fix snapcleaner for OSX

Yonik Seeley3b7621142e42
diff --git a/src/scripts/snapcleaner b/src/scripts/snapcleaner
index 41af0ced86b..0111c2c1d89 100755
--- a/src/scripts/snapcleaner
+++ b/src/scripts/snapcleaner
@@ -91,7 +91,13 @@ fi
function 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 ]]
then
logMessage $1 not removed - rsync in progress