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
Better
Better
Commits
fafd1856
Commit
fafd1856
authored
May 09, 2016
by
Aral Balkan
Browse files
Fixed better/stat output issue due to jq character escaping issues.
parent
4a35bf35
Pipeline
#493
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
better/stat
View file @
fafd1856
...
...
@@ -92,7 +92,9 @@ listContentUnderActiveDevelopment(){
echo
"
\n
Content under active development:"
echo
"=================================
\n
"
branchesRaw
=
$(
curl
--silent
-H
"PRIVATE-TOKEN:
${
privateToken
}
"
https://source.ind.ie/api/v3/projects/
$contentRepositoryID
/repository/branches
)
branchesRaw
=
$(
curl
--silent
-H
"PRIVATE-TOKEN:
${
privateToken
}
"
https://source.ind.ie/api/v3/projects/
$contentRepositoryID
/repository/branches |
sed
's/\\r\\n//g'
)
# To avoid jq parse error: Invalid string: control characters from U+0000 through U+001F must be escaped
branchesClean
=
"
${
branchesRaw
//\\n/
}
"
remoteBranches
=
$(
echo
"
$branchesClean
"
|
$private
/lib/jq
--raw-output
'.[] | select(.name != "master")'
)
...
...
Aral Balkan
@aral
mentioned in issue
#8 (closed)
·
May 09, 2016
mentioned in issue
#8 (closed)
mentioned in issue #8
Toggle commit list
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