]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
proper escapting
authorHolger Levsen <holger@layer-acht.org>
Thu, 3 Nov 2011 14:19:04 +0000 (15:19 +0100)
committerHolger Levsen <holger@layer-acht.org>
Thu, 3 Nov 2011 14:19:04 +0000 (15:19 +0100)
kernel_inpbuilder.py

index 0e0bb5679bdad0d7b4062217d6dc9c4b001dfdea..b61d8776067feb95c0466400ce2e8dc19c7f31b1 100644 (file)
@@ -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)