fix: only try to change directory if one was provided

pull/5/head
TorchedSammy 2021-03-21 04:09:45 -04:00
parent 511c734eed
commit 5c9a117985
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ commander = require 'commander'
ansikit = require 'ansikit' ansikit = require 'ansikit'
commander.register("cd", function (path) commander.register("cd", function (path)
if path then if #path == 1 then
fs.cd(path[1]) fs.cd(path[1])
end end
end) end)