From caa4158c3b99f9c5cb455674eecfcde0babb538a Mon Sep 17 00:00:00 2001 From: "Fred T. Hamster" Date: Fri, 6 Dec 2024 19:03:26 -0500 Subject: [PATCH] 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 --- scripts/core/functions.sh | 2 +- scripts/core/inventory.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.34.1