2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-02 03:33:22 +00:00

fix: only try to change directory if one was provided

This commit is contained in:
TorchedSammy 2021-03-21 04:09:45 -04:00
parent 511c734eed
commit 5c9a117985

View File

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