hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/kernel/shell.rv
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/shell.rv')
-rw-r--r--kernel/shell.rv4
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/shell.rv b/kernel/shell.rv
index e016d18..e5f4caf 100644
--- a/kernel/shell.rv
+++ b/kernel/shell.rv
@@ -128,9 +128,7 @@ fn cmd_cd(context) do
const target = if (arg == "..") parent_of(wd.path) else expand_path(arg)
- if target == "/proc"
- or target == "/bin"
- or fs:is_dir(target) do
+ if vfs:is_dir(target) do
wd.path = target
end else do
fail("cd: #{arg}: not a directory\n")