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