We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afea5d3 commit 5ce7587Copy full SHA for 5ce7587
scripts/build_ffmpeg_min.ps1
@@ -103,16 +103,7 @@ if ($extraLdflags) {
103
$configureArgs += "--extra-ldflags=$extraLdflags"
104
}
105
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
+& $bash "$ffmpegSrcUnix/configure" @configureArgs
116
if ($LASTEXITCODE -ne 0) { Pop-Location; exit $LASTEXITCODE }
117
118
nmake
0 commit comments