From: Holger Levsen Date: Thu, 3 Nov 2011 14:19:04 +0000 (+0100) Subject: proper escapting X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=79cc67599aac05f9fcc6c5b466093edd368fdf5c;p=profitbricks%2Fjenkins-build-scripts.git proper escapting --- diff --git a/kernel_inpbuilder.py b/kernel_inpbuilder.py index 0e0bb56..b61d877 100644 --- a/kernel_inpbuilder.py +++ b/kernel_inpbuilder.py @@ -446,7 +446,7 @@ if __name__ == '__main__': kernel_persistence.update_kernel_branch_obj(kernel_revision_obj, git_helper.git_get_commit_id()) # update changelog - cmd = 'sed -i -e "s#DUMMY_ENTRY#%s#" -e "s#DUMMY_DATE#%s#" %s' % (git_helper.git_get_commit_id(),git_helper.git_get_commit_date(),os.path.join(OVERLAY_DIR,'changelog')) + cmd = 'sed -i -e \'s#DUMMY_ENTRY#%s#\' -e \'s#DUMMY_DATE#%s#\' %s' % (git_helper.git_get_commit_id(),git_helper.git_get_commit_date(),os.path.join(OVERLAY_DIR,'changelog')) logger.info(cmd) os.system(cmd)