Skip to content

Commit 70a5681

Browse files
committed
If command contains compiler tokens, escape the $ because it may be expanded on bash
1 parent 5575cd7 commit 70a5681

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ASConfigC.as

+4
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,10 @@ package
671671
try
672672
{
673673
var command:String = escapePath(this._javaExecutable) + " " + this._compilerArgs.join(" ");
674+
if(process.platform !== "win32")
675+
{
676+
command = command.replace(/\$\{/g, "\\${");
677+
}
674678
if(this._additionalOptions)
675679
{
676680
command += " " + this._additionalOptions;

0 commit comments

Comments
 (0)