fixed typo
This commit is contained in:
parent
02202d1672
commit
1955be329c
Binary file not shown.
Binary file not shown.
|
@ -342,7 +342,7 @@ A similar example in bash could have the following form:
|
|||
echo "Getting token"
|
||||
TOKEN=$(curl -X POST $ccpiamurl -d grant_type=refresh_token -d client_id=$ccpclientid -d refresh_token=$ccprefreshtoken -H "X-D4Science-Context: $ccpcontext" | jq -r '."access_token"')
|
||||
|
||||
echo Downloading $1 to $2
|
||||
echo Downloading $wslink to $inputfile
|
||||
curl -L $wslink -o $inputfile -H "Authorization: Bearer $TOKEN"
|
||||
|
||||
echo "Downloaded"
|
||||
|
|
|
@ -404,7 +404,7 @@ The technology and the list of available Runtimes is strictly related to type of
|
|||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="w"> </span><span class="nb">echo</span><span class="w"> </span><span class="s2">"Getting token"</span>
|
||||
<span class="w"> </span><span class="nv">TOKEN</span><span class="o">=</span><span class="k">$(</span>curl<span class="w"> </span>-X<span class="w"> </span>POST<span class="w"> </span><span class="nv">$ccpiamurl</span><span class="w"> </span>-d<span class="w"> </span><span class="nv">grant_type</span><span class="o">=</span>refresh_token<span class="w"> </span>-d<span class="w"> </span><span class="nv">client_id</span><span class="o">=</span><span class="nv">$ccpclientid</span><span class="w"> </span>-d<span class="w"> </span><span class="nv">refresh_token</span><span class="o">=</span><span class="nv">$ccprefreshtoken</span><span class="w"> </span>-H<span class="w"> </span><span class="s2">"X-D4Science-Context: </span><span class="nv">$ccpcontext</span><span class="s2">"</span><span class="w"> </span><span class="p">|</span><span class="w"> </span>jq<span class="w"> </span>-r<span class="w"> </span><span class="s1">'."access_token"'</span><span class="k">)</span>
|
||||
|
||||
<span class="w"> </span><span class="nb">echo</span><span class="w"> </span>Downloading<span class="w"> </span><span class="nv">$1</span><span class="w"> </span>to<span class="w"> </span><span class="nv">$2</span>
|
||||
<span class="w"> </span><span class="nb">echo</span><span class="w"> </span>Downloading<span class="w"> </span><span class="nv">$wslink</span><span class="w"> </span>to<span class="w"> </span><span class="nv">$inputfile</span>
|
||||
<span class="w"> </span>curl<span class="w"> </span>-L<span class="w"> </span><span class="nv">$wslink</span><span class="w"> </span>-o<span class="w"> </span><span class="nv">$inputfile</span><span class="w"> </span>-H<span class="w"> </span><span class="s2">"Authorization: Bearer </span><span class="nv">$TOKEN</span><span class="s2">"</span>
|
||||
|
||||
<span class="w"> </span><span class="nb">echo</span><span class="w"> </span><span class="s2">"Downloaded"</span>
|
||||
|
|
|
@ -342,7 +342,7 @@ A similar example in bash could have the following form:
|
|||
echo "Getting token"
|
||||
TOKEN=$(curl -X POST $ccpiamurl -d grant_type=refresh_token -d client_id=$ccpclientid -d refresh_token=$ccprefreshtoken -H "X-D4Science-Context: $ccpcontext" | jq -r '."access_token"')
|
||||
|
||||
echo Downloading $1 to $2
|
||||
echo Downloading $wslink to $inputfile
|
||||
curl -L $wslink -o $inputfile -H "Authorization: Bearer $TOKEN"
|
||||
|
||||
echo "Downloaded"
|
||||
|
|
Loading…
Reference in New Issue