Skip to content

Commit

Permalink
Fix version comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
joelamos committed Jan 28, 2017
1 parent b1ba473 commit 403508b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/joelchristophel/sourceradio/Playlist.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public static void main(String[] args) {
System.out.println("Checking for SourceRadio updates...");
try {
String latestVersion = getLatestVersion();
if (version.compareTo(latestVersion) == 0) {
if (version.compareTo(latestVersion) < 0) {
System.out.println("Update found: " + "SourceRadio v" + latestVersion);
}
} catch (Exception e) {
Expand Down

0 comments on commit 403508b

Please sign in to comment.