X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcore%2Finventory.sh;h=db33f74cf5b0afddab17b93f6fd0e5b96f3ebaa6;hb=cb9a6d62f46aaaa4d3c6d2f4ea5752f02420db6a;hp=eeb77039ad4cacc95c434ceeec771214b76370d3;hpb=1622e38a1cb487dfd4000376792fb7ff718de8d1;p=feisty_meow.git diff --git a/scripts/core/inventory.sh b/scripts/core/inventory.sh index eeb77039..db33f74c 100644 --- a/scripts/core/inventory.sh +++ b/scripts/core/inventory.sh @@ -38,7 +38,7 @@ fi # decide whether they've got splitter available or not. if [ -f "$FEISTY_MEOW_BINARIES/splitter" -o -f "$FEISTY_MEOW_BINARIES/splitter.exe" ]; then # calculate the number of columsn in the terminal. - cols=$(stty size | awk '{print $2}') + cols=$(get_maxcols) splitter="$FEISTY_MEOW_BINARIES/splitter --maxcol $(($cols - 1))" else # not available, so just emit as huge overly long string.