Skip to content

Commit d5b274d

Browse files
committed
fix for versioning on linux
1 parent fc28c0f commit d5b274d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ shouldUpgrade asset =
116116
let assetNameTokens = T.splitOn "-" (Main.name asset)
117117
in if length assetNameTokens `notElem` [3, 4]
118118
then False
119-
else assetNameTokens !! 2 /= T.pack (showVersion version)
119+
else (T.replace ".tar.gz" "" (assetNameTokens !! 2)) /= T.pack (showVersion version)
120120

121121
-- | If conditions are met, download the appropriate tarball from the latest
122122
-- github release, extract and copy to /usr/local/bin

0 commit comments

Comments
 (0)