update remote scripts
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
# CodeOcean Remote Client v0.5
|
||||
# run like this:
|
||||
# cd path/to/project_root
|
||||
# .scripts/macos.sh .
|
||||
|
||||
# CodeOcean Remote Client v0.6
|
||||
|
||||
#file_info format: <path/to/file/><file_name>=<id> (src/frog.java=34)
|
||||
#file_path format: <path/to/file/><file_name>
|
||||
@@ -28,6 +32,7 @@ function get_valid_file_path {
|
||||
function get_escaped_file_content {
|
||||
file_path="$1"
|
||||
cat "$file_path" |
|
||||
perl -p -e 's@\\@\\\\@g' |
|
||||
perl -p -e 's@\r\n@\\n@g' |
|
||||
perl -p -e 's@\n@\\n@g' |
|
||||
perl -p -e 's@"@\\"@g'
|
||||
|
Reference in New Issue
Block a user