aboutsummaryrefslogtreecommitdiff
path: root/cmd/myshell
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/myshell')
-rw-r--r--cmd/myshell/main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/myshell/main.go b/cmd/myshell/main.go
index 4aa8a6d..cbb3c02 100644
--- a/cmd/myshell/main.go
+++ b/cmd/myshell/main.go
@@ -46,6 +46,7 @@ func main() {
if _, err := os.Stat(exec); err == nil {
fmt.Printf("%s is %s\n", command[1], exec)
+ break
}
}
fmt.Printf("%s not found\n", command[1])