1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/dist/tools/usb-serial/find-tty.sh
Marian Buschsieweke 2cc70027b0
dist/tools/usb-serial: Clean up legacy scripts
Refactor the old bash scripts to use `ttys.py` instead and update the
documentation.
2023-01-06 15:52:09 +01:00

16 lines
331 B
Bash
Executable File

#!/usr/bin/env bash
# This file is subject to the terms and conditions of the GNU Lesser General
# Public License v2.1. See the file LICENSE in the top level directory for more
# details.
exit_code=1
for serial in "$@"; do
if ./ttys.py --format path --serial "$serial"; then
exit_code=0
fi
done
exit $exit_code