Skip to content
Snippets Groups Projects
Commit f3ce61ba authored by Guy Zana's avatar Guy Zana
Browse files

run.js: handle absolute paths

parent 21d94018
No related branches found
No related tags found
No related merge requests found
...@@ -14,8 +14,13 @@ var run_cmd = { ...@@ -14,8 +14,13 @@ var run_cmd = {
argv.splice(0, 1); argv.splice(0, 1);
// FIXME: Handle absolute paths var f = null;
var f = File(cd.cwd(), argv[0]); if (argv[0].indexOf("/") == 0) {
f = File(argv[0]);
} else {
f = File(cd.cwd(), argv[0]);
}
if (!f.exists()) { if (!f.exists()) {
return -1; return -1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment