Fixed bug furtune

Fixed bug furtune:
To message: "fortune: not found"
This commit is contained in:
Tiago Danin 2016-01-17 10:22:18 -03:00
parent 81b67d0aa3
commit 481ce8b484

View File

@ -1,7 +1,7 @@
-- Requires that the "fortune" program is installed on your computer. -- Requires that the "fortune" program is installed on your computer.
local s = io.popen('fortune'):read('*all') local s = io.popen('fortune'):read('*all')
if s:match('fortune: command not found') then if s:match('fortune: command not found') or ('fortune: not found') then
print('fortune is not installed on this computer.') print('fortune is not installed on this computer.')
print('fortune.lua will not be enabled.') print('fortune.lua will not be enabled.')
return return