Skip to content

Commit

Permalink
return 127 if user command not found
Browse files Browse the repository at this point in the history
  • Loading branch information
icy committed Sep 8, 2020
1 parent ad995aa commit 021ca52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func args2cmd(args []string) (string, []string) {

binary, err := exec.LookPath(command)
if err != nil {
log2exit(1, fmt.Sprintf(":: Command not found %s\n", command))
log2exit(127, fmt.Sprintf(":: Command not found %s\n", command))
}

for _, arg := range args {
Expand Down

0 comments on commit 021ca52

Please sign in to comment.