diff --git a/custom_bin/changeport.sh b/custom_bin/changeport.sh index 5e9bc94..28b213a 100644 --- a/custom_bin/changeport.sh +++ b/custom_bin/changeport.sh @@ -16,19 +16,18 @@ function subprocess() { ttyselect="${devarr[$tty+1]}" else echo -e "\nNo Serial Devices Found, Select one later with 'changeport'\n" -fi + fi sel=$tty+1 - eval "$1=${devarr[$sel]}" - + ret="${devarr[$sel]}" return 0 } if [ ! -z "$1" ]; then ret="$1" else - ret='' - subprocess ret + ret="" + subprocess fi export ESPPORT="$ret" diff --git a/esp-idf-tools-cmd.sh b/esp-idf-tools-cmd.sh old mode 100755 new mode 100644