gerrit-plugin bucklet: Fix macro resolution $(foo bar baz) is preserved for internal Buck macros. For shell commands '$' char must be escaped. This was done in Gerrit core, but missed to do in gerrit bucklet. Change-Id: I1a8fa60f1d9d169b002553f5d0f25febd779d385
diff --git a/gerrit_plugin.bucklet b/gerrit_plugin.bucklet index 9d79ae4..5c96b71 100644 --- a/gerrit_plugin.bucklet +++ b/gerrit_plugin.bucklet
@@ -80,7 +80,7 @@ include_defs('//' + path.join(ROOT, 'VERSION')) mf_cmd = 'v=%s && ' % PLUGIN_VERSION elif path.exists(path.join(ROOT, '.git')): - mf_cmd = 'v=$(git describe --always HEAD) && ' + mf_cmd = 'v=\$(git describe --always HEAD) && ' else: # cannot retrieve plugin version, guessing '1.0' mf_cmd = 'v=1.0 && ' mf_cmd += 'echo "Manifest-Version: 1.0" >$OUT && '