kopia lustrzana https://github.com/c9/core
fix escaping of $file variable in runners using script property
rodzic
1ecdf902a4
commit
6fd7bb1981
|
@ -2,15 +2,15 @@
|
|||
"script": [
|
||||
"set -e",
|
||||
"if ! [ \"$debug\" == true ]; then ",
|
||||
" node $file $args",
|
||||
" node \"$file\" $args",
|
||||
"elif \"$(node -p 'parseInt(process.version.slice(1)) < 7')\" == true; then",
|
||||
" FLAGS=\"--nocrankshaft --nolazy --debug-brk=$debugport\"",
|
||||
" if node --nodead_code_elimination -e '' &> /dev/null; then",
|
||||
" FLAGS=\"$FLAGS --nodead_code_elimination\"",
|
||||
" fi",
|
||||
" node $FLAGS $file $args",
|
||||
" node $FLAGS \"$file\" $args",
|
||||
"else",
|
||||
" node --inspect-brk=$debugport $file $args",
|
||||
" node --inspect-brk=$debugport \"$file\" $args",
|
||||
"fi"
|
||||
],
|
||||
"debugger": "v8",
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
"script" : [
|
||||
"set -e",
|
||||
"if [ \"$debug\" == true ]; then ",
|
||||
"/usr/bin/g++ -ggdb3 -std=c++11 $file -o $file.o",
|
||||
"/usr/bin/g++ -ggdb3 -std=c++11 \"$file\" -o \"$file.o\"",
|
||||
"chmod 755 \"$file.o\"",
|
||||
"node $HOME/.c9/bin/c9gdbshim.js \"$file.o\" $args",
|
||||
"else",
|
||||
"/usr/bin/g++ -std=c++11 $file -o $file.o",
|
||||
"chmod 755 $file.o",
|
||||
"$file.o $args",
|
||||
"/usr/bin/g++ -std=c++11 \"$file\" -o \"$file.o\"",
|
||||
"chmod 755 \"$file.o\"",
|
||||
"\"$file.o\" $args",
|
||||
"fi"
|
||||
],
|
||||
"info": "Running $file",
|
||||
|
|
|
@ -2,15 +2,15 @@
|
|||
"script": [
|
||||
"set -e",
|
||||
"if ! [ \"$debug\" == true ]; then ",
|
||||
" node $file $args",
|
||||
" node \"$file\" $args",
|
||||
"elif node --debug -e '' &> /dev/null; then",
|
||||
" FLAGS=\"--nocrankshaft --nolazy --debug-brk=$debugport\"",
|
||||
" if node --nodead_code_elimination -e '' &> /dev/null; then",
|
||||
" FLAGS=\"$FLAGS --nodead_code_elimination\"",
|
||||
" fi",
|
||||
" node $FLAGS $file $args",
|
||||
" node $FLAGS \"$file\" $args",
|
||||
"else",
|
||||
" node --inspect-brk=$debugport $file $args",
|
||||
" node --inspect-brk=$debugport \"$file\" $args",
|
||||
"fi"
|
||||
],
|
||||
"debugger": "v8",
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
"script": [
|
||||
"if [ \"$debug\" == true ]; then ",
|
||||
" python2 -m ikpdb --ikpdb-port=15471 --ikpdb-working-directory=$project_path $file $args",
|
||||
" python2 -m ikpdb --ikpdb-port=15471 --ikpdb-working-directory=$project_path \"$file\" $args",
|
||||
"else",
|
||||
" python2 $file $args",
|
||||
" python2 \"$file\" $args",
|
||||
"fi",
|
||||
"checkExitCode() {",
|
||||
" if [ $1 ] && [ \"$debug\" == true ]; then ",
|
||||
|
|
Ładowanie…
Reference in New Issue