From ca35911befb1838a33bf8c2595d5a792267202b6 Mon Sep 17 00:00:00 2001 From: Ralf Teusner Date: Fri, 12 May 2017 16:37:10 +0200 Subject: [PATCH] update codeocean-ide client scripts --- app/assets/remote_scripts/macos.sh | 6 +++--- app/assets/remote_scripts/ubuntu.sh | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/assets/remote_scripts/macos.sh b/app/assets/remote_scripts/macos.sh index 4632d421..f408c899 100644 --- a/app/assets/remote_scripts/macos.sh +++ b/app/assets/remote_scripts/macos.sh @@ -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: = (src/frog.java=34) #file_path format: @@ -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 diff --git a/app/assets/remote_scripts/ubuntu.sh b/app/assets/remote_scripts/ubuntu.sh index db5a970d..d2fc4aa3 100644 --- a/app/assets/remote_scripts/ubuntu.sh +++ b/app/assets/remote_scripts/ubuntu.sh @@ -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: = (src/frog.java=34) #file_path format: @@ -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