Skip to content

Commit

Permalink
fix bug with update on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
aviaviavi committed Jul 27, 2018
1 parent 4bbbe27 commit fc28c0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ findAssetFromReleases (GithubReleasesResponse releases) =
shouldUpgrade :: GithubReleaseAsset -> Bool
shouldUpgrade asset =
let assetNameTokens = T.splitOn "-" (Main.name asset)
in if length assetNameTokens /= 4
in if length assetNameTokens `notElem` [3, 4]
then False
else assetNameTokens !! 2 /= T.pack (showVersion version)

Expand Down

0 comments on commit fc28c0f

Please sign in to comment.