SOLR-623: fix snapcleaner for OSX

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@678622 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2008-07-22 02:56:19 +00:00
parent d8779e18ae
commit 3b7621142e
1 changed files with 7 additions and 1 deletions

View File

@ -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