From 1bf0f567cd132a423a560e6bd19726f043cdb54a Mon Sep 17 00:00:00 2001 From: David Windell Date: Sat, 28 Oct 2017 02:27:11 +0100 Subject: [PATCH] Fix erroneous ", --- .../src/main/resources/org.eclipse.che.git.script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agents/git-credentials/src/main/resources/org.eclipse.che.git.script.sh b/agents/git-credentials/src/main/resources/org.eclipse.che.git.script.sh index 72f3a3f1f324..8c72480e21ca 100644 --- a/agents/git-credentials/src/main/resources/org.eclipse.che.git.script.sh +++ b/agents/git-credentials/src/main/resources/org.eclipse.che.git.script.sh @@ -36,7 +36,7 @@ echo 'api_url='"$api_url" >> ${SCRIPT_FILE} echo 'request="'${request}'"' >> ${SCRIPT_FILE} # Ssh key request may return key with decoded '=' symbol, so need to replace '\u003d' to '='. # TODO remove the replacement after https://github.com/eclipse/che/issues/5253 will be fixed. -echo 'ssh_key=$(${request} "$api_url/ssh/vcs/find?name=$host$(if [ -n "$token" ]; then echo "&token=$token"; fi)"| grep -Po '\''"privateKey":.*?[^\\\\]",'\''| sed -e "s/\"privateKey\":\"//" | sed -e "s/\\\\\u003d/=/g")' >> ${SCRIPT_FILE} +echo 'ssh_key=$(${request} "$api_url/ssh/vcs/find?name=$host$(if [ -n "$token" ]; then echo "&token=$token"; fi)"| grep -Po '\''"privateKey":.*?[^\\\\]",'\''| sed -e "s/\"privateKey\":\"//" | sed -e "s/\",//" | sed -e "s/\\\\\u003d/=/g")' >> ${SCRIPT_FILE} echo 'if [ -n "$ssh_key" ]' >> ${SCRIPT_FILE} echo 'then' >> ${SCRIPT_FILE} echo ' key_file=$(mktemp)' >> ${SCRIPT_FILE}