fix find permission error in build.sh
This commit is contained in:
parent
61d3e22062
commit
ee729814ca
2
build.sh
2
build.sh
@ -21,7 +21,7 @@ get_docker_run_flags() {
|
|||||||
if [ -t 0 ]; then
|
if [ -t 0 ]; then
|
||||||
DOCKER_RUN_FLAGS+=(--tty)
|
DOCKER_RUN_FLAGS+=(--tty)
|
||||||
fi
|
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
|
for device in $USB_SERIAL_DEVICES; do
|
||||||
DOCKER_RUN_FLAGS+=(--device "$device")
|
DOCKER_RUN_FLAGS+=(--device "$device")
|
||||||
echo_status "Adding device $device to container"
|
echo_status "Adding device $device to container"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user