We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfa2f01 commit ece4048Copy full SHA for ece4048
app/src/main/java/de/lolhens/resticui/restic/Restic.kt
@@ -44,6 +44,14 @@ class Restic(
44
private val loader = executable("loader")
45
private val loader32 = executable("loader32")
46
47
+ private fun withRoot(args: List<String>): List<String> =
48
+ listOf(
49
+ "su",
50
+ "-c",
51
+ args.joinToString(" ") { arg -> "'" + arg.replace("'", "'\"'\"'") + "'" },
52
+ "root"
53
+ )
54
+
55
private fun withProot(
56
binds: List<Pair<String, String>>,
57
command: List<String>
0 commit comments