File: 00-nodejs.diff

package info (click to toggle)
node-command-join 1.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 124 kB
  • ctags: 4
  • sloc: makefile: 7; sh: 2
file content (17 lines) | stat: -rw-r--r-- 635 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Patch the nodejs binary name.
Forwarded: not-needed
Author: Paolo Greppi <paolo.greppi@libpf.com>

Index: node-command-join/test/exec.js
===================================================================
--- node-command-join.orig/test/exec.js
+++ node-command-join/test/exec.js
@@ -11,7 +11,7 @@ else if (typeof ChildProcess.execSync ==
     args = args.slice()
     args.unshift(__filename)
     let joined = join(args)
-    let command = `node ${joined}`
+    let command = `nodejs ${joined}`
     let out = ChildProcess.execSync(command)
     // trim to remove extra \n appended by cmd
     return String(out).trim()