From 92bb3ca79fa8f9fd71aa99dc2253288ce9729d24 Mon Sep 17 00:00:00 2001 From: Simon Fels Date: Tue, 5 Jul 2016 14:44:31 +0200 Subject: [PATCH] scripts: use correct way to check for Androids sh implementation --- scripts/anbox-init.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/anbox-init.sh b/scripts/anbox-init.sh index 0ec8138..e426773 100644 --- a/scripts/anbox-init.sh +++ b/scripts/anbox-init.sh @@ -17,7 +17,9 @@ function prepare_filesystem() { # These dev files need to be adjusted everytime as they are # bind mounted into the temporary rootfs for f in qemu_pipe qemu_trace goldfish_pipe input/* ; do - [ ! -e /dev/$f ] && continue + if [ ! -e /dev/$f ] ; then + continue + fi chown system:system /dev/$f chmod 0666 /dev/$f done