Merge branch 'OC1.3-MC1.6.4' of github.com:MightyPirates/OpenComputers into OC1.3-MC1.7.10

This commit is contained in:
Florian Nücke 2014-08-06 13:30:09 +02:00
commit c5c58bf9d0

View File

@ -11,7 +11,11 @@ local aliases = {}
local shells = setmetatable({}, {__mode="v"}) local shells = setmetatable({}, {__mode="v"})
local function getShell() 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 if shells[shellName] then
return shells[shellName] return shells[shellName]
end end