aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjet2tlf <jet2tlf@gmail.com>2024-05-31 04:51:21 +0000
committerjet2tlf <jet2tlf@gmail.com>2024-05-31 04:51:21 +0000
commit8f0373f4f7b68ddc85dbc493c0b98de91bb56995 (patch)
tree119e77e61729d5b0177290774fc26424a2c83d84
parent6eb5e0a690a0311ecdeb245cc16b4b9ad30a124f (diff)
downloadshell-go-8f0373f4f7b68ddc85dbc493c0b98de91bb56995.tar.gz
shell-go-8f0373f4f7b68ddc85dbc493c0b98de91bb56995.zip
pass 12st stage
-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)