mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-04-10 04:19:25 -07: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:
@@ -99,6 +99,7 @@ process.exit(0);
|
||||
function makeFakeYtDlpShellScript(dir: string): string {
|
||||
const scriptPath = path.join(dir, 'yt-dlp');
|
||||
const script = `#!/bin/sh
|
||||
PATH=/usr/bin:/bin:/usr/local/bin
|
||||
has_auto_subs=0
|
||||
wants_auto_subs=0
|
||||
wants_manual_subs=0
|
||||
|
||||
Reference in New Issue
Block a user