Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Commit

Permalink
Forgot to split current string
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexeption committed Jul 22, 2021
1 parent 761933c commit 348d714
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public boolean versionChecker() {
String time = new SimpleDateFormat("H:mm a").format(created_at);

newSha = root.get("tag_name").toString().substring(2, 9);
currentSha = Magma.class.getPackage().getImplementationVersion();
currentSha = Magma.class.getPackage().getImplementationVersion().split("-")[0];

if (currentSha.equals(newSha)) {
System.out.printf("No update found, latest version: (%s) current version: (%s)%n", currentSha, newSha);
Expand Down

0 comments on commit 348d714

Please sign in to comment.