From: Fred T. Hamster Date: Sat, 7 Dec 2024 00:03:26 +0000 (-0500) Subject: cleaned up stty noise X-Git-Tag: 2.140.189^2~91 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=caa4158c3b99f9c5cb455674eecfcde0babb538a;p=feisty_meow.git cleaned up stty noise made stty call not pollute stdout. generalized inventory script a little, so it doesn't expect our scripts variable, but still does rely on FEISTY_MEOW_APEX --- diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index a668e6c1..d5162785 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -232,7 +232,7 @@ if [ -z "$skip_all" ]; then function get_maxcols() { # calculate the number of columsn in the terminal. - local cols=$(stty size | awk '{print $2}') + local cols=$(stty size 2>/dev/null | awk '{print $2}') echo $cols } diff --git a/scripts/core/inventory.sh b/scripts/core/inventory.sh index 84b2b839..6b1b11b7 100644 --- a/scripts/core/inventory.sh +++ b/scripts/core/inventory.sh @@ -3,7 +3,7 @@ # a frivolous but useful script that shows information about the local # computer in terms of an adventure game inventory listing. -source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" +source "$FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh" unset -v codename osname osver if [ $OPERATING_SYSTEM == "UNIX" ]; then