update code
This commit is contained in:
parent
79df8d332f
commit
c5fbdee481
1 changed files with 3 additions and 2 deletions
|
|
@ -60,9 +60,10 @@ class PipelineIf extends PipelineExecutor {
|
|||
@override
|
||||
Future execute() async {
|
||||
var result = checkCondition(_data.condition!);
|
||||
var quotes = Platform.isWindows ? '^"' : '';
|
||||
var quotesPre = Platform.isWindows ? '^"' : '';
|
||||
var quotesLast = Platform.isWindows ? '"' : '';
|
||||
var printStr =
|
||||
'$quotes[IF] (${result.conditionValue}) : ${result.result}$quotes';
|
||||
'$quotesPre[IF] (${result.conditionValue}) : ${result.result}$quotesLast';
|
||||
await CLI.println(printStr, color: Color.magentaStrong);
|
||||
if (result.result) {
|
||||
await _pipelineTrue?.execute();
|
||||
|
|
|
|||
Loading…
Reference in a new issue