Skip to content

Commit

Permalink
changing version file extension to .txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Upbolt authored Oct 27, 2022
1 parent 82683b8 commit 0b45935
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ local releaseInfo = HttpService:JSONDecode(game:HttpGetAsync("https://api.github

if readFile and writeFile then
local hasFolderFunctions = (isFolder and makeFolder) ~= nil
local ran, result = pcall(readFile, "version.oh")
local ran, result = pcall(readFile, "__oh_version.txt")

if not ran or releaseInfo.tag_name ~= result then
if hasFolderFunctions then
Expand Down Expand Up @@ -250,7 +250,7 @@ if readFile and writeFile then
return unpack(assets)
end

writeFile("version.oh", releaseInfo.tag_name)
writeFile("__oh_version.txt", releaseInfo.tag_name)
elseif ran and releaseInfo.tag_name == result then
function environment.import(asset)
if importCache[asset] then
Expand Down

0 comments on commit 0b45935

Please sign in to comment.