All pastes #2013250 Raw Edit

Mine

public shellscript v1 · immutable
#2013250 ·published 2010-12-07 21:26 UTC
rendered paste body
function removePlugin{	LINE=`cat $SERVER_PROPERTIES | grep "plugins="`	_endstr=""	values=$(echo $LINE | tr "," "\n")	for _plugin in $values	do		if [[ $_plugin == plugins=* ]]		then			_plugin=${_plugin:8}		fi		if [[ $_plugin == $PLUGIN ]]		then			continue # we want to remove it		fi		if [[ $_endstr == "" ]]		then			_endstr="plugins=$_plugin"		else			_endstr="$_endstr,$_plugin"		fi	done	echo $_endstr}