Skip to content

Commit

Permalink
Fix conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
PyvesB committed Feb 20, 2022
1 parent 9758503 commit 6df3c35
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static void install(String gem, StringPreferences pathPreference) {

@Override
public void done(IJobChangeEvent event) {
if (event.getResult() != Status.OK_STATUS) {
if (event.getResult() == Status.OK_STATUS) {
String extension = CommandHelper.isWindows() ? ".bat" : "";
String gemPath = getPluginStateLocation() + File.separator + lowerCaseGem + extension;
pathPreference.setValue(gemPath);
Expand Down

0 comments on commit 6df3c35

Please sign in to comment.