Skip to content

Commit ed93445

Browse files
committed
- Fix repeatable arg validation
1 parent 555bc5e commit ed93445

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/bashly/views/command/parse_requirements_case_repeatable.gtx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
condition = "if"
44
args.each do |arg|
5+
= arg.render(:validations)
56
> {{ condition }} [[ -z ${args[{{ arg.name }}]+x} ]]; then
6-
= arg.render(:validations).indent 2
7-
87
if arg.repeatable
98
> args[{{ arg.name }}]="\"$1\""
109
> shift

0 commit comments

Comments
 (0)