Skip to content

Commit

Permalink
dist/tools/usb-serial/find-tty.sh: call ttys.py with its path
Browse files Browse the repository at this point in the history
Signed-off-by: Dylan Laduranty <[email protected]>
(cherry picked from commit 1007f02)
  • Loading branch information
dylad authored and maribu committed Jul 14, 2023
1 parent c15cbaa commit 6b7e2c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dist/tools/usb-serial/find-tty.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@

exit_code=1

SCRIPTDIR="$(cd "$(dirname "$0")" || exit 1; pwd)"
for serial in "$@"; do
if ./ttys.py --format path --serial "$serial"; then
if "$SCRIPTDIR"/ttys.py --format path --serial "$serial"; then
exit_code=0
fi
done
Expand Down

0 comments on commit 6b7e2c3

Please sign in to comment.