Skip to content

Commit

Permalink
Fix findbugs suggested bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuhidet committed Oct 10, 2018
1 parent 0119287 commit 5a7b4e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/au/com/rayh/DeveloperProfileLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ public void perform(@Nonnull Run<?, ?> run, @Nonnull FilePath workspace, @Nonnul
ByteArrayOutputStream output = new ByteArrayOutputStream();
if ( launcher.launch().cmds(args).stdout(output).join() != 0 ) {
listener.getLogger().write(output.toByteArray());
if ( output.toString().contains("A default keychain could not be found.") ) {
String strResult = new String(output.toByteArray(), "UTF-8");
if ( strResult.contains("A default keychain could not be found.") ) {
args = new ArgumentListBuilder("security", "default-keychain");
args.add("-d").add("user");
args.add("-s").add(_keychainPath);
Expand Down

0 comments on commit 5a7b4e4

Please sign in to comment.