@@ -39,7 +39,7 @@ export runRecipe = (rc, recipe, options, recon, asIngredient) ->
39
39
40
40
for dep in dependencies
41
41
# won't pass options
42
- if typeof dep == " string" then await runRecipe (rc, dep, {}, recon, true ); break
42
+ if typeof dep == " string" then await runRecipe (rc, dep, {}, recon, true ); continue
43
43
44
44
depOption = { ... dep .options }
45
45
if typeof dep .passParentOptions == " boolean" and dep .passParentOptions
@@ -63,18 +63,18 @@ export runRecipe = (rc, recipe, options, recon, asIngredient) ->
63
63
Deno .chdir (usedCwd)
64
64
# make main recipe
65
65
_commands = currentRecipe .command
66
- commands = (if typeof _commands == " string" then [_commands] else _commands)
67
- .map (cmdOption) ->
68
- try
69
- if typeof cmdOption == " string" then return eta .render (cmdOption, currentOption)
70
- else return {... cmdOption, cmd : eta .render (cmdOption .cmd , currentOption)}
71
- catch err
72
- console .error (
73
- " \n xuerun: oops, something went wrong while reading command.\n Error:" ,
74
- err .message , " \n " )
75
- Deno .exit (1 )
76
66
77
- for cmdOption in commands
67
+ for _cmdOption in (if typeof _commands == " string" then [_commands] else _commands)
68
+ try
69
+ if typeof _cmdOption == " string"
70
+ cmdOption = eta .render (_cmdOption, currentOption)
71
+ else cmdOption = {... _cmdOption, cmd : eta .render (_cmdOption .cmd , currentOption)}
72
+ catch err
73
+ console .error (
74
+ " \n xuerun: oops, something went wrong while reading command.\n Error:" ,
75
+ err .message , " \n " )
76
+ Deno .exit (1 )
77
+
78
78
# used by eval
79
79
opt = currentOption
80
80
# don't run if eval when is false
0 commit comments