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:
2026-04-03 13:26:19 -07:00
parent 0f03547c83
commit db03713a9a

View File

@@ -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