Skip to content

Commit

Permalink
Adjust su binary version parsing
Browse files Browse the repository at this point in the history
Fixes (for example) the cm-su case
  • Loading branch information
Chainfire committed Apr 23, 2015
1 parent 2a0d9f5 commit bb125a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libsuperuser/src/eu/chainfire/libsuperuser/Shell.java
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ public static synchronized String version(boolean internal) {
if (ret != null) {
for (String line : ret) {
if (!internal) {
if (line.contains(".")) {
if (!line.trim().equals("")) {
version = line;
break;
}
Expand Down

0 comments on commit bb125a3

Please sign in to comment.