mirror of https://github.com/apache/lucene.git
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:
parent
d8779e18ae
commit
3b7621142e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue