mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 19:25:20 -04:00
Merge branch 'OC1.3-MC1.6.4' of github.com:MightyPirates/OpenComputers into OC1.3-MC1.7.10
This commit is contained in:
commit
c5c58bf9d0
@ -11,7 +11,11 @@ local aliases = {}
|
||||
local shells = setmetatable({}, {__mode="v"})
|
||||
|
||||
local function getShell()
|
||||
local shellName = shell.resolve(os.getenv("SHELL"), "lua")
|
||||
local shellPath = os.getenv("SHELL") or "/bin/sh"
|
||||
local shellName, reason = shell.resolve(shellPath, "lua")
|
||||
if not shellName then
|
||||
return nil, "cannot resolve shell `" .. shellPath .. "': " .. reason
|
||||
end
|
||||
if shells[shellName] then
|
||||
return shells[shellName]
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user