Skip to content

Commit

Permalink
fix: check if no command passed to exec (#310)
Browse files Browse the repository at this point in the history
* fix: check if no command passed to exec

* docs: add exec fixes

* chore: remove extra space
  • Loading branch information
youkwhd authored Jul 10, 2024
1 parent 0e4b95d commit b24fc4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ hilbish.run('wc -l', {

### Fixed
- Fix ansi attributes causing issues with text when cut off in greenhouse
- `exec` command should return if no arg presented

## [2.2.3] - 2024-04-27
### Fixed
Expand Down
3 changes: 3 additions & 0 deletions nature/commands/exec.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
local commander = require 'commander'

commander.register('exec', function(args)
if #args == 0 then
return
end
hilbish.exec(args[1])
end)

0 comments on commit b24fc4a

Please sign in to comment.