aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/myshell/main.go2
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"))