fix: remove appendpath from preload.lua

pull/42/head
Devin Singh 2021-04-28 17:13:43 -05:00
parent 786b95c266
commit 345ff65da8
No known key found for this signature in database
GPG Key ID: 7EA319C5D57B6506
1 changed files with 0 additions and 17 deletions

View File

@ -5,23 +5,6 @@ local fs = require 'fs'
local commander = require 'commander'
local bait = require 'bait'
commander.register('appendpath', function (args)
bait.throw('appendpath', args)
local path = ''
for i = 1, #args do
path = path .. tostring(args[i]) .. ':'
end
path = path:sub(1, -2)
local ok, err = pcall(function() fs.appendpath(path) end)
if not ok then
if err == 1 then
print('failed to set path')
end
bait.throw('command.exit', err)
else bait.throw('command.exit', 0) end
end)
commander.register('cd', function (args)
bait.throw('cd', args)
if #args > 0 then