mirror of https://github.com/Hilbis/Hilbish
fix: only try to change directory if one was provided
parent
511c734eed
commit
5c9a117985
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue