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 file = args[1]
|
||||
args = nil
|
||||
local fs = import("filesystem")
|
||||
|
||||
if not file then
|
||||
shell.run("help rm")
|
||||
return
|
||||
end
|
||||
if file:sub(1, 1) ~= "/" then
|
||||
file = shell.workingDirectory .. file
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user