aboutsummaryrefslogtreecommitdiff
path: root/cmd/myshell/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/myshell/main.go')
-rw-r--r--cmd/myshell/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/myshell/main.go b/cmd/myshell/main.go
index 4609ce7..08db887 100644
--- a/cmd/myshell/main.go
+++ b/cmd/myshell/main.go
@@ -53,8 +53,8 @@ func Cd(dir string) {
p := path.Clean(dir)
if !path.IsAbs(p) {
- directory, _ := os.Getwd()
- p = path.Join(directory, p)
+ dir, _ := os.Getwd()
+ p = path.Join(dir, p)
}
err := os.Chdir(p)