Skip to content

Commit 16b40d1

Browse files
committed
Escape parameters oassed from generated (bash/sh) shell script to clurun correctly
1 parent e46880d commit 16b40d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CLU/Microsoft.CLU.Run/PackageManagementMode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ private static void GenerateScript(string cfgPath)
548548
" export CmdletSessionID=$PPID",
549549
"fi",
550550
"SCRIPTPATH=$(dirname \"$0\")",
551-
$"$SCRIPTPATH/clurun -s {scriptName} -r $SCRIPTPATH/{Path.GetFileName(cfgPath)} $*"
551+
$"$SCRIPTPATH/clurun -s {scriptName} -r $SCRIPTPATH/{Path.GetFileName(cfgPath)} \"$@\""
552552
});
553553
System.Diagnostics.Process.Start("chmod", $"777 {scriptPath}");
554554
}

0 commit comments

Comments
 (0)