diff --git a/custom_bin/changeport.sh b/custom_bin/changeport.sh index 79d5aa6..42e746f 100644 --- a/custom_bin/changeport.sh +++ b/custom_bin/changeport.sh @@ -4,7 +4,7 @@ if [ ! -z "$1" ]; then export ESPPORT="$1" echo "ESPPORT set to $ESPPORT" - exit 0 + return 0 fi # gloals @@ -31,7 +31,7 @@ fi export ESPPORT="$ttyselect" echo "ESPPORT set to $ESPPORT" -exit 0 +return 0 function subprocess() { echo -e "\nChanging ESPPORT\n" echo -e "\nChecking for Serial Devices in dmesg\n"