mirror of
https://github.com/revanced/jadb.git
synced 2024-11-19 10:39:23 +01:00
always quote command since not only whitespaces require quoting
This commit is contained in:
parent
0fe4484380
commit
423ccb3a89
@ -6,10 +6,6 @@ public class Bash {
|
||||
}
|
||||
|
||||
public static String quote(String s) {
|
||||
// Check that s contains no whitespace
|
||||
if (s.matches("\\S+")) {
|
||||
return s;
|
||||
}
|
||||
return "'" + s.replace("'", "'\\''") + "'";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user