Skip to content

Commit 60db5bf

Browse files
committed
- Remove call to root_command when there are sub-commands
1 parent f83363d commit 60db5bf

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/bashly/views/command/run.gtx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ deep_commands.each do |command|
2121
>
2222
end
2323

24-
> "root")
25-
> root_command
26-
> ;;
24+
if commands.empty?
25+
> "root")
26+
> root_command
27+
> ;;
28+
end
2729
>
2830
> esac
2931
> }

0 commit comments

Comments
 (0)