mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-11-12 04:46:07 -08:00
Set minimal PATH inside fake yt-dlp shell script
The SUBMINER_YTDLP_BIN test empties PATH to verify the env var fallback, but the shell script needs sed/mkdir/dirname. Hardcode a minimal PATH at the top of the script so internal commands work.
This commit is contained in:
1 parent
0f03547c83
commit
db03713a9a
1 file changed
+1
@@ -99,6 +99,7 @@ process.exit(0);
|
|||||||
function makeFakeYtDlpShellScript(dir: string): string {
|
function makeFakeYtDlpShellScript(dir: string): string {
|
||||||
const scriptPath = path.join(dir, 'yt-dlp');
|
const scriptPath = path.join(dir, 'yt-dlp');
|
||||||
const script = `#!/bin/sh
|
const script = `#!/bin/sh
|
||||||
|
PATH=/usr/bin:/bin:/usr/local/bin
|
||||||
has_auto_subs=0
|
has_auto_subs=0
|
||||||
wants_auto_subs=0
|
wants_auto_subs=0
|
||||||
wants_manual_subs=0
|
wants_manual_subs=0
|
||||||
|
|||||||
Reference in new issue
Block a user