ported apps download/wget, fetch, label, and lscor/ps

for the fetch app to fully work, defenv has been edited to share _OSLOGO.
This commit is contained in:
Ponali
2025-09-14 18:46:26 +02:00
parent 3c087aaddf
commit ff04e730f9
5 changed files with 18 additions and 15 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ end
if not url then
print("Please enter a URL to download from.")
shell.run("help download")
require("shell").run("help download")
return
end
@@ -39,7 +39,7 @@ until not tmpdata
local saveLocation
local saveLocationOK = false
repeat
saveLocation = read(nil, "File save location: ", fs.concat(shell.workingDirectory, url:match("/([^/]+)$")))
saveLocation = terminal.read(nil, "File save location: ", fs.concat(require("shell").getWorkingDirectory(), url:match("/([^/]+)$")))
if fs.isDirectory(saveLocation) then
print("\27[91mThe specified location is a directory.")
elseif fs.exists(saveLocation) then