Skip to content

Commit b36872a

Browse files
committed
Fix condition when providing a custom command
1 parent 4137d59 commit b36872a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
- Fix condition when providing a custom command.
6+
57
## Version 0.2.0
68

79
- Allow quiet and debug modes.

manage-ghar

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ start () {
6464
cd "$runner_path"
6565

6666
# check if runner command is valid
67-
if ! ([[ -x "$runner_command" ]] || type "$runner_command" >/dev/null 2>&1)
67+
# i.e., the command is executable and exists
68+
if ! ([[ -x "$runner_command" ]] || ! type "$runner_command" >/dev/null 2>&1)
6869
then
6970
message_error "Runner command $runner_command is invalid"
7071
return 12

0 commit comments

Comments
 (0)