From c4729670b6c6c79fc968710b18a2b7a2f0860c8d Mon Sep 17 00:00:00 2001 From: gator96100 Date: Tue, 29 Dec 2020 21:37:01 +0100 Subject: [PATCH] Fixed serial port not parsing --- .vscode/setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vscode/setup.sh b/.vscode/setup.sh index cdfb77e8f..70672b924 100755 --- a/.vscode/setup.sh +++ b/.vscode/setup.sh @@ -40,7 +40,7 @@ function setup_serial_port { if [ -z "$SerialPort" ]; then pm3list=$($VSCODEPATH/../pm3 --list 2>/dev/null) #Use first port listed - SerialPort=$(echo $pm3list | head -n 1 | cut -c 4-) + export SerialPort=$(echo $pm3list | head -n 1 | cut -c 4-) if [ -z "$SerialPort" ]; then echo >&2 "[!!] No serial port found, please set SerialPort manually" exit 1