]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
escape routines are important
authorHolger Levsen <holger@layer-acht.org>
Wed, 31 Aug 2011 18:25:27 +0000 (20:25 +0200)
committerHolger Levsen <holger@layer-acht.org>
Wed, 31 Aug 2011 18:25:27 +0000 (20:25 +0200)
build.py

index dca31598b33f8dee8b0f7e394e42f8c693b3f0bf..33f590cde5b85f9bef73c0828f36acb668f64479 100755 (executable)
--- a/build.py
+++ b/build.py
@@ -364,7 +364,7 @@ if __name__ == '__main__':
 
        # i hate this: a version needs to include a . now...
        #cmd = ['grep-dctrl', '-n', '-s', 'Version', '.']
-       cmd = [ 'awk', "'/^Version: / {print $2}'"]
+       cmd = [ 'awk', '/^Version: / {print $2}']
        grep_dctrl =  subprocess.Popen(
                 cmd,
                 shell=False,