Skip to content

Commit

Permalink
Fix incorrect path normalization with cd command (Close #10)
Browse files Browse the repository at this point in the history
  • Loading branch information
chvancooten committed Mar 4, 2023
1 parent cf3c56f commit bef008f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion client/commands/cd.nim
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ proc cd*(args : varargs[string]) : string =
if newDir == "":
result = obf("Invalid number of arguments received. Usage: 'cd [directory]'.")
else:
newDir.normalizePath()
setCurrentDir(newDir)
result = obf("Changed working directory to '") & newDir & obf("'.")

0 comments on commit bef008f

Please sign in to comment.