v0.8.1 - Fixed a couple bugs involving the shell crashing and fetch. Added proper shell error handling.
This commit is contained in:
@@ -3,6 +3,10 @@ local fromFile, toFile = args[1], args[2]
|
||||
args = nil
|
||||
local fs = import("filesystem")
|
||||
|
||||
if not fromFile or not toFile then
|
||||
shell.run("help cp")
|
||||
return
|
||||
end
|
||||
if fromFile:sub(1, 1) ~= "/" then
|
||||
fromFile = shell.workingDirectory .. fromFile
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user