Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
scripts
mahara-scripts
Commits
06cbdaad
Commit
06cbdaad
authored
Apr 11, 2016
by
Aaron Wells
Browse files
Missing some backslashes in the grep command to check git remotes for branches
parent
b6ead900
Pipeline
#49
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
mahara-langpacks/langpacks.pl
View file @
06cbdaad
...
...
@@ -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
=
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment