Skip to content

Commit

Permalink
Fix erroneous ",
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwindell committed Oct 28, 2017
1 parent c8e0a36 commit 1bf0f56
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 1bf0f56

Please sign in to comment.