mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-04-09 16:19:25 -07:00
Fix CI failures in youtube track-download tests
- Use #!/bin/sh instead of #!/usr/bin/env sh so the fake yt-dlp shell script works when PATH is emptied by the SUBMINER_YTDLP_BIN test - Remove trailing blank line in heredoc rolling-auto output to match the bun script's output (avoids extra \n that breaks normalization assertion)
This commit is contained in:
@@ -98,7 +98,7 @@ process.exit(0);
|
||||
|
||||
function makeFakeYtDlpShellScript(dir: string): string {
|
||||
const scriptPath = path.join(dir, 'yt-dlp');
|
||||
const script = `#!/usr/bin/env sh
|
||||
const script = `#!/bin/sh
|
||||
has_auto_subs=0
|
||||
wants_auto_subs=0
|
||||
wants_manual_subs=0
|
||||
@@ -162,7 +162,6 @@ WEBVTT
|
||||
|
||||
00:00:03.000 --> 00:00:04.000
|
||||
今日はいい天気ですね本当に
|
||||
|
||||
EOF
|
||||
elif [ "$YTDLP_FAKE_MODE" = "multi-primary-only-fail" ]; then
|
||||
primary_lang="\${sub_lang%%,*}"
|
||||
|
||||
Reference in New Issue
Block a user