update codeocean-ide client scripts

This commit is contained in:
Ralf Teusner
2017-05-12 16:37:10 +02:00
parent e9917cde3a
commit ca35911bef
2 changed files with 7 additions and 6 deletions

View File

@ -2,9 +2,9 @@
# run like this:
# cd path/to/project_root
# .scripts/macos.sh .
# bash .scripts/macos.sh .
# CodeOcean Remote Client v0.6
# CodeOcean Remote Client v0.7
#file_info format: <path/to/file/><file_name>=<id> (src/frog.java=34)
#file_path format: <path/to/file/><file_name>
@ -70,5 +70,5 @@ done
post_data="{\"remote_evaluation\": {\"validation_token\": \"$validation_token\",\"files_attributes\": [$files_attributes]}}"
curl -H 'Content-Type: application/json' --data "$post_data" "$target_url"
curl -H 'Content-Type: application/json' --data "$(echo $post_data)" "$target_url"
echo

View File

@ -2,9 +2,9 @@
# run like this:
# cd path/to/project_root
# .scripts/ubuntu.sh .
# bash .scripts/ubuntu.sh .
# CodeOcean Remote Client v0.6
# CodeOcean Remote Client v0.7
#file_info format: <path/to/file/><file_name>=<id> (src/frog.java=34)
#file_path format: <path/to/file/><file_name>
@ -61,5 +61,6 @@ done
post_data="{\"remote_evaluation\": {\"validation_token\": \"$validation_token\",\"files_attributes\": [$files_attributes]}}"
curl -H 'Content-Type: application/json' --data "$post_data" "$target_url"
# "$(echo $post_data)" solves some whitespace issues
curl -H 'Content-Type: application/json' --data "$(echo $post_data)" "$target_url"
echo