Skip to content

Commit 021ca52

Browse files
committed
return 127 if user command not found
1 parent ad995aa commit 021ca52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func args2cmd(args []string) (string, []string) {
5858

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

6464
for _, arg := range args {

0 commit comments

Comments
 (0)