Commit 06cbdaad authored by Aaron Wells's avatar Aaron Wells
Browse files

Missing some backslashes in the grep command to check git remotes for branches

parent b6ead900
Pipeline #49 skipped
......@@ -169,7 +169,9 @@ foreach my $lang (@langkeys) {
chdir $gitlangdir;
system "git fetch --quiet";
# @UPDATE when there is a new series
my $remotebranchcmd = 'git branch -r | grep -v "HEAD" | grep "origin\/\(master\|1.10_STABLE|15.04_STABLE|15.10_STABLE|16.04_STABLE\)$"';
# When adding a new branch name here, make sure to preface it with
# "\|", that is, a backslash, then a pipe.
my $remotebranchcmd = 'git branch -r | grep -v "HEAD" | grep "origin\/\(master\|1.10_STABLE\|15.04_STABLE\|15.10_STABLE\|16.04_STABLE\)$"';
my $remotebranches = `$remotebranchcmd`;
$remotebranches =~ s/\s+/ /;
@branches = ();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment