File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/CLU/Microsoft.CLU.Run Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -534,6 +534,7 @@ private static void GenerateScript(string cfgPath)
534
534
{
535
535
var scriptPath = GetScriptPath ( cfgPath ) ;
536
536
var scriptName = Path . GetFileNameWithoutExtension ( scriptPath ) ;
537
+ var ScriptBaseName = "az" ;
537
538
538
539
if ( File . Exists ( scriptPath ) )
539
540
return ;
@@ -544,7 +545,7 @@ private static void GenerateScript(string cfgPath)
544
545
{
545
546
"#!/bin/bash" ,
546
547
"SCRIPTPATH=$(dirname \" $0\" )" ,
547
- $ "$SCRIPTPATH/clurun -s { scriptName } -r $SCRIPTPATH/{ Path . GetFileName ( cfgPath ) } \" $@\" "
548
+ $ "$SCRIPTPATH/clurun -s { ScriptBaseName } -r $SCRIPTPATH/{ Path . GetFileName ( cfgPath ) } \" $@\" "
548
549
} ) ;
549
550
System . Diagnostics . Process . Start ( "chmod" , $ "777 { scriptPath } ") ;
550
551
}
@@ -553,7 +554,7 @@ private static void GenerateScript(string cfgPath)
553
554
File . WriteAllLines ( scriptPath , new string [ ]
554
555
{
555
556
"@echo off" ,
556
- $@ "%~dp0\clurun.exe -s { scriptName } -r %~dp0\{ Path . GetFileName ( cfgPath ) } %*"
557
+ $@ "%~dp0\clurun.exe -s { ScriptBaseName } -r %~dp0\{ Path . GetFileName ( cfgPath ) } %*"
557
558
} ) ;
558
559
}
559
560
}
You can’t perform that action at this time.
0 commit comments