forked from Hyperion/HyperionOS
Update Src/Hyperion-bash/bin/bash
This commit is contained in:
@@ -173,6 +173,17 @@ local function getUserInput()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function runCommand(command)
|
local function runCommand(command)
|
||||||
|
do
|
||||||
|
local func = load("return " .. command, "@equation", "t", {})
|
||||||
|
if func then
|
||||||
|
local success, result = pcall(func)
|
||||||
|
if success and type(result) == "number" then
|
||||||
|
print(result)
|
||||||
|
return
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
terminate = false
|
terminate = false
|
||||||
local args = string.split(command, " ")
|
local args = string.split(command, " ")
|
||||||
if builtinCmds[args[1]] then
|
if builtinCmds[args[1]] then
|
||||||
|
|||||||
Reference in New Issue
Block a user