aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-02-17 03:32:35 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-02-17 03:32:35 +0100
commit5d10faeda4ad780a3caf72e112c69b81ffeec5f8 (patch)
tree61896df3ab33b3a18a95db28ff73d01a4e0601b9
parentVersion bump (diff)
downloadwireguard-android-5d10faeda4ad780a3caf72e112c69b81ffeec5f8.tar.xz
wireguard-android-5d10faeda4ad780a3caf72e112c69b81ffeec5f8.zip
ToolsInstaller: fix typo on cleanup
-rw-r--r--app/src/main/java/com/wireguard/android/util/ToolsInstaller.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/com/wireguard/android/util/ToolsInstaller.java b/app/src/main/java/com/wireguard/android/util/ToolsInstaller.java
index 6012cf7..45dab84 100644
--- a/app/src/main/java/com/wireguard/android/util/ToolsInstaller.java
+++ b/app/src/main/java/com/wireguard/android/util/ToolsInstaller.java
@@ -117,7 +117,7 @@ public final class ToolsInstaller {
private int installMagisk() throws NoRootException {
final StringBuilder script = new StringBuilder("set -ex; ");
- script.append("trap 'rm -rf /sbin/ecore/img/wireguard' INT TERM EXIT; ");
+ script.append("trap 'rm -rf /sbin/.magisk/img/wireguard' INT TERM EXIT; ");
script.append(String.format("rm -rf /sbin/.magisk/img/wireguard/; mkdir -p /sbin/.magisk/img/wireguard%s; ", INSTALL_DIR));
script.append(String.format("printf 'name=WireGuard Command Line Tools\nversion=%s\nversionCode=%s\nauthor=zx2c4\ndescription=Command line tools for WireGuard\nminMagisk=1500\n' > /sbin/.magisk/img/wireguard/module.prop; ", BuildConfig.VERSION_NAME, BuildConfig.VERSION_CODE));
script.append("touch /sbin/.magisk/img/wireguard/auto_mount; ");