Skip to content

Commit 7642e75

Browse files
authored
Merge pull request #306 from DannyBen/remove/unused-root-command
Remove call to root_command when there are sub-commands
2 parents f83363d + 60db5bf commit 7642e75

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)