From 00ac4d5112b25b86127ad80b1874fbb688cb9aeb Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Fri, 4 Aug 2017 00:37:29 -0500 Subject: RootShell: rename SETUP to SETUP_TEMPLATE --- app/src/main/java/com/wireguard/android/RootShell.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/wireguard/android/RootShell.java b/app/src/main/java/com/wireguard/android/RootShell.java index 096ff046..c060c967 100644 --- a/app/src/main/java/com/wireguard/android/RootShell.java +++ b/app/src/main/java/com/wireguard/android/RootShell.java @@ -20,14 +20,14 @@ class RootShell { * Setup commands that are run at the beginning of each root shell. The trap command ensures * access to the return value of the last command, since su itself always exits with 0. */ - private static final String SETUP = "export TMPDIR=%s\ntrap 'echo $?' EXIT\n"; + private static final String SETUP_TEMPLATE = "export TMPDIR=%s\ntrap 'echo $?' EXIT\n"; private static final String TAG = "RootShell"; private final byte setupCommands[]; RootShell(Context context) { final String tmpdir = context.getCacheDir().getPath(); - setupCommands = String.format(SETUP, tmpdir).getBytes(StandardCharsets.UTF_8); + setupCommands = String.format(SETUP_TEMPLATE, tmpdir).getBytes(StandardCharsets.UTF_8); } /** -- cgit v1.2.3