diff options
| -rw-r--r-- | cmd/myshell/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/myshell/main.go b/cmd/myshell/main.go index beac132..cbb2f14 100644 --- a/cmd/myshell/main.go +++ b/cmd/myshell/main.go @@ -21,7 +21,7 @@ func main() { switch in { case commnds[0] == "exit": - os.Exit(commands[1]) + os.Exit(commands[1].ToInt()) } fmt.Printf("%s: command not found\n", strings.TrimRight(in, "\n")) |