Skip to content

Commit e7701e3

Browse files
committed
update clu run code to produce az.bat
1 parent d8af3c2 commit e7701e3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,7 @@ private static void GenerateScript(string cfgPath)
534534
{
535535
var scriptPath = GetScriptPath(cfgPath);
536536
var scriptName = Path.GetFileNameWithoutExtension(scriptPath);
537+
var ScriptBaseName = "az";
537538

538539
if (File.Exists(scriptPath))
539540
return;
@@ -544,7 +545,7 @@ private static void GenerateScript(string cfgPath)
544545
{
545546
"#!/bin/bash",
546547
"SCRIPTPATH=$(dirname \"$0\")",
547-
$"$SCRIPTPATH/clurun -s {scriptName} -r $SCRIPTPATH/{Path.GetFileName(cfgPath)} \"$@\""
548+
$"$SCRIPTPATH/clurun -s {ScriptBaseName} -r $SCRIPTPATH/{Path.GetFileName(cfgPath)} \"$@\""
548549
});
549550
System.Diagnostics.Process.Start("chmod", $"777 {scriptPath}");
550551
}
@@ -553,7 +554,7 @@ private static void GenerateScript(string cfgPath)
553554
File.WriteAllLines(scriptPath, new string[]
554555
{
555556
"@echo off",
556-
$@"%~dp0\clurun.exe -s {scriptName} -r %~dp0\{Path.GetFileName(cfgPath)} %*"
557+
$@"%~dp0\clurun.exe -s {ScriptBaseName} -r %~dp0\{Path.GetFileName(cfgPath)} %*"
557558
});
558559
}
559560
}

0 commit comments

Comments
 (0)