Support for real harddrive and Jmicron usb drives
This commit is contained in:
@@ -14,6 +14,7 @@ cd src
|
||||
echo "clonning"
|
||||
curl https://github.com/nodejs/node/archive/refs/tags/v$VERSION.zip -L --output $VERSION.zip || exit 1
|
||||
unzip $VERSION.zip || exit 1
|
||||
./patch.sh
|
||||
cd -
|
||||
fi
|
||||
|
||||
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
patch -R src/node-17.1.0/lib/child_process.js patches/child_process_executor.diff
|
||||
@@ -0,0 +1,18 @@
|
||||
586,591d585
|
||||
< } else if (typeof options.shell === 'string') {
|
||||
< file = '/bin/executor';
|
||||
< args = [ options.shell, '-c', command];
|
||||
< } else if (process.platform === 'android') {
|
||||
< file = '/system/bin/sh';
|
||||
< args = ['-c', command];
|
||||
593,594c587,593
|
||||
< file = '/bin/executor';
|
||||
< args = command.split(' ');
|
||||
---
|
||||
> if (typeof options.shell === 'string')
|
||||
> file = options.shell;
|
||||
> else if (process.platform === 'android')
|
||||
> file = '/system/bin/sh';
|
||||
> else
|
||||
> file = '/bin/sh';
|
||||
> args = ['-c', command];
|
||||
Reference in New Issue
Block a user