From 441a2d0beaa73f70ea9ff6cd3bb12ec195223ba3 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Tue, 2 Jul 2024 13:54:19 +0100 Subject: [PATCH] refactor: replace all use of fold with fmt; no need for ncurses --- quickget | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/quickget b/quickget index f2959777e2..0a2ba13664 100755 --- a/quickget +++ b/quickget @@ -138,7 +138,7 @@ function os_homepage() { function error_specify_os() { echo "ERROR! You must specify an operating system." echo "- Supported Operating Systems:" - os_support | fold -s -w "$(tput cols)" + os_support | fmt -w 80 echo -e "\nTo see all possible arguments, use:\n quickget -h or quickget --help" exit 1 } @@ -146,7 +146,7 @@ function error_specify_os() { function os_supported() { if [[ ! "$(os_support)" =~ ${OS} ]]; then echo -e "ERROR! ${OS} is not a supported OS.\n" - os_support | fold -s -w "$(tput cols)" + os_support | fmt -w 80 exit 1 fi } @@ -171,10 +171,10 @@ function error_specify_release() { ;; *) echo -en " - Releases:\t" - "releases_${OS}" | fold -s -w "$(tput cols)" + "releases_${OS}" | fmt -w 80 if [[ $(type -t "editions_${OS}") == function ]]; then echo -en " - Editions:\t" - "editions_${OS}" | fold -s -w "$(tput cols)" + "editions_${OS}" | fmt -w 80 fi ;; esac @@ -3364,7 +3364,7 @@ Arguments: -------------------------------------------------------------------------------- Supported Operating Systems:\n\n' "$(quickemu --version)" "${CURL_VERSION}" - os_support | fold -s -w "$(tput cols)" + os_support | fmt -w 80 } trap cleanup EXIT