Skip to content

Commit 5ce7587

Browse files
committed
try another approach
1 parent afea5d3 commit 5ce7587

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

scripts/build_ffmpeg_min.ps1

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -103,16 +103,7 @@ if ($extraLdflags) {
103103
$configureArgs += "--extra-ldflags=$extraLdflags"
104104
}
105105

106-
function Quote-ForBash([string]$arg) {
107-
$replacement = "'`\"'`\"'"
108-
$escaped = $arg -replace "'", $replacement
109-
return "'" + $escaped + "'"
110-
}
111-
112-
$quotedArgs = $configureArgs | ForEach-Object { Quote-ForBash $_ }
113-
$configureCmd = "cd '$buildDirUnix' && '$ffmpegSrcUnix/configure' " + ($quotedArgs -join " ")
114-
115-
& $bash -lc $configureCmd
106+
& $bash "$ffmpegSrcUnix/configure" @configureArgs
116107
if ($LASTEXITCODE -ne 0) { Pop-Location; exit $LASTEXITCODE }
117108

118109
nmake

0 commit comments

Comments
 (0)