From 8562a3ab665bbaac97720deb71e7fb1cf4941d35 Mon Sep 17 00:00:00 2001 From: hPrnicessPi3 Date: Fri, 9 May 2025 15:33:19 -0600 Subject: [PATCH] more bugfixes 3 --- custom_bin/changebaud.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/custom_bin/changebaud.sh b/custom_bin/changebaud.sh index 3fdff36..cc7d88c 100644 --- a/custom_bin/changebaud.sh +++ b/custom_bin/changebaud.sh @@ -26,14 +26,16 @@ function selectBaud() { 5) selection=1152000;; 6) selection=1500000;; esac - - echo $selection + + eval "$1=$selection" + return 0; } -if [ ! -z $1 ]; then +if [ ! -z "$1" ]; then ret="$1" else - ret=$(selectBaud) + ret='' + subprocess ret fi echo "ret: $ret"