def doMerge(self):
    result = self.appendToMerge()
    if (result[(- 1)] != '\n'):
        result += '\n'
    result += 'if [[ tmpMergeRetCode -eq 0 ]]; then\n  xrdcp -f .oO[finalOutputFile]Oo. root://eoscms//eos/cms.oO[finalResultFile]Oo.\nfi\nif [[ ${tmpMergeRetCode} -gt ${mergeRetCode} ]]; then\n  mergeRetCode=${tmpMergeRetCode}\nfi\n'
    result = replaceByMap(result, self.getRepMap())
    return result
def doMerge(self):
    result = self.appendToMerge()
    if (result[(- 1)] != '\n'):
        result += '\n'
    result += 'if [[ tmpMergeRetCode -eq 0 ]]; then\n  xrdcp -f .oO[finalOutputFile]Oo. root://eoscms//eos/cms.oO[finalResultFile]Oo.\nfi\nif [[ ${tmpMergeRetCode} -gt ${mergeRetCode} ]]; then\n  mergeRetCode=${tmpMergeRetCode}\nfi\n'
    result = replaceByMap(result, self.getRepMap())
    return result