We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 528cc75 + a0f779c commit ac2bfd2Copy full SHA for ac2bfd2
1 file changed
Runner/utils/platform.sh
@@ -6,19 +6,14 @@
6
# Detect Android userland
7
ANDROID_PATH=/system/build.prop
8
if [ -f $ANDROID_PATH ]; then
9
- ANDROID=1
10
# shellcheck disable=SC2209,SC2034
11
SHELL_CMD=sh
12
else
13
- ANDROID=0
14
15
SHELL_CMD=bash
16
fi
17
18
-function pidkiller()
+pidkiller()
19
{
20
- if [ $ANDROID -eq 0 ]; then
21
- disown $1
22
- fi
23
- kill -9 $1 >/dev/null 2>&1
+ kill -9 "$1" >/dev/null 2>&1
24
}
0 commit comments