Skip to content
This repository was archived by the owner on Nov 21, 2018. It is now read-only.

Commit 8dd753f

Browse files
committed
Fix escape in commit_id calculation
1 parent cee6efd commit 8dd753f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

master/master.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1324,7 +1324,7 @@ def packaging_dist_buildfactory(platform, channel_label):
13241324
# Routing stderr to /dev/null is to work around a
13251325
# mysterious bug on windows where cat thinks I'm trying to pipe
13261326
# file called '^'.
1327-
source_id = "cat tmp/work/rustc-*/version 2> /dev/null | sed 's/^.*(\([a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9]\).*/\1/'"
1327+
source_id = 'cat tmp/work/rustc-*/version 2> /dev/null | sed "s/^.*(\([a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9]\).*/\\1/"'
13281328
f.addStep(SetPropertyFromCommand(env=CommandEnv(),
13291329
command=["sh", "-c", source_id],
13301330
property="commit_id",

0 commit comments

Comments
 (0)