update notification

This commit is contained in:
kepler155c@gmail.com 2020-04-30 22:05:23 -06:00
parent c5e0ac0af6
commit c622b2f7fb
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ local shell = _ENV.shell
local URL = 'https://raw.githubusercontent.com/kepler155c/opus/%s/.opus_version'
if fs.exists('.opus_version') then
local f = fs.open('.opus_version')
local f = fs.open('.opus_version', 'r')
local date = f.readLine()
f.close()
date = type(date) == 'string' and Util.split(date)[1]