From ee729814cab39f55a51fef646bb220ab46260941 Mon Sep 17 00:00:00 2001 From: Alex Mikhalev Date: Fri, 1 Feb 2019 10:58:42 -0800 Subject: [PATCH] fix find permission error in build.sh --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 7c670d8..3578f76 100755 --- a/build.sh +++ b/build.sh @@ -21,7 +21,7 @@ get_docker_run_flags() { if [ -t 0 ]; then DOCKER_RUN_FLAGS+=(--tty) fi - USB_SERIAL_DEVICES=$(find /dev -name 'ttyUSB0' -o -name 'ttyACM*') + USB_SERIAL_DEVICES=$(find /dev -name 'ttyUSB0' -o -name 'ttyACM*' || true) for device in $USB_SERIAL_DEVICES; do DOCKER_RUN_FLAGS+=(--device "$device") echo_status "Adding device $device to container"