forked from Hyperion/HyperionOS
more reorganizeing and $PKGCONFIG.ini files added B to ls -lh for "Bytes"
This commit is contained in:
@@ -5,7 +5,7 @@ syscall.open("/dev/null","w") --stderr (device 2)
|
||||
|
||||
local success, errorMsg = xpcall(function()
|
||||
|
||||
local fs = require("sys.fs")
|
||||
local fs = require("fs")
|
||||
|
||||
syscall.devctl(1,"clear")
|
||||
syscall.devctl(1,"sfgc",1)
|
||||
|
||||
@@ -43,7 +43,7 @@ if opts.help then
|
||||
return
|
||||
end
|
||||
|
||||
local fs = require("sys.fs")
|
||||
local fs = require("fs")
|
||||
|
||||
if opts.x then
|
||||
if #args < 2 then
|
||||
|
||||
@@ -45,7 +45,7 @@ if cloptions.help then
|
||||
return
|
||||
end
|
||||
|
||||
local fs = require("sys.fs")
|
||||
local fs = require("fs")
|
||||
local dir = args[1] or ""
|
||||
if dir:sub(1, 1) ~= "/" then
|
||||
dir = syscall.getcwd() .. "/" .. dir
|
||||
@@ -84,7 +84,7 @@ local function humanSize(size)
|
||||
size = size / 1024
|
||||
scale = scale + 1
|
||||
end
|
||||
if scale == 0 then return tostring(size) end
|
||||
if scale == 0 then return tostring(size).."B" end
|
||||
if size < 10 then
|
||||
return string.format("%.1f%s", size, sizePrefixes[scale])
|
||||
end
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
--:Minify:--
|
||||
local fs = require("sys.fs")
|
||||
local fs = require("fs")
|
||||
|
||||
local cmdArgs = {...}
|
||||
local targetUser = "root"
|
||||
|
||||
@@ -29,7 +29,7 @@ if not ok then
|
||||
end
|
||||
|
||||
if removeHome and pwent and pwent.homedir then
|
||||
local fs = require("sys.fs")
|
||||
local fs = require("fs")
|
||||
local ok2, err2 = pcall(function()
|
||||
local function rmdir(path)
|
||||
for _, f in ipairs(fs.list(path) or {}) do
|
||||
|
||||
Reference in New Issue
Block a user