Commit fafd1856 authored by Aral Balkan's avatar Aral Balkan

Fixed better/stat output issue due to jq character escaping issues.

parent 4a35bf35
Pipeline #493 skipped
......@@ -92,7 +92,9 @@ listContentUnderActiveDevelopment(){
echo "\nContent 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")')
......
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