Fix port selection

This commit is contained in:
Elizabeth Cray 2024-08-19 20:18:33 -04:00
parent 837c10eb21
commit 32d3020421

View File

@ -148,7 +148,9 @@ if [[ "$ARG_PORT" == 0 ]]; then
while [ ! -f "${MANUAL_FILE}" ]; do
MANUAL_FILE=$(dialog --backtitle "drwho@hackers.town" --title "Manual Device Selection" --inputbox "Enter Full Device File Path" 8 40 "${MANUAL_FILE}" 3>&1 1>&2 2>&3)
done
DEVICE="/dev/serial/by-id/$MANUAL_FILE"
DEVICE="$MANUAL_FILE"
else
DEVICE="/dev/serial/by-id/$DEVICE"
fi
else
echo.ICyan "Using passed serial port"