update code

This commit is contained in:
leedongmyung[desktop] 2023-11-25 23:36:24 +09:00
parent 79df8d332f
commit c5fbdee481

View file

@ -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();