Skip to content

Commit 5778c35

Browse files
authored
fix afc-debug script if no serial devices found (#294)
This pull request includes a small but important change to the `troubleshooting/afc-debug.sh` script. The change ensures that a message is displayed when no serial devices are found, improving the script's robustness and user feedback. * [`troubleshooting/afc-debug.sh`](diffhunk://#diff-f90bf2ef443900b47139a1df1cf4fed2ee7afaea3274ba701e86d8905f704d54L233-R233): Modified the `SERIAL_IDS` command to display "No serial devices found." if no serial devices are present.
1 parent 75b631c commit 5778c35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

troubleshooting/afc-debug.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ DISTRO=$(strings /etc/*-release 2>/dev/null || echo "Unknown")
230230
KERNEL=$(uname -a)
231231
UPTIME=$(uptime)
232232
LSUSB=$(lsusb | tr -d '\0')
233-
SERIAL_IDS=$(ls -l /dev/serial/by-id/)
233+
SERIAL_IDS=$(ls -l /dev/serial/by-id/ || echo "No serial devices found.")
234234

235235
get_afc_version
236236
get_klipper_version

0 commit comments

Comments
 (0)