Fold echo as needed
This commit is contained in:
parent
cad8568a68
commit
5567544134
8
quickget
8
quickget
|
|
@ -30,9 +30,9 @@ function show_os_info() {
|
||||||
echo $" Based of: ${BASEDOF}"
|
echo $" Based of: ${BASEDOF}"
|
||||||
echo $"Description: ${DESCRIPTION}"
|
echo $"Description: ${DESCRIPTION}"
|
||||||
echo $"Credentials: ${CREDENTIALS}"
|
echo $"Credentials: ${CREDENTIALS}"
|
||||||
echo $"Releases: ${RELEASES}" | fmt -w 80
|
echo $"Releases: ${RELEASES}" | fmt -w $(tput cols)
|
||||||
if [[ $(type -t "editions_") == function ]]; then
|
if [[ $(type -t "editions_") == function ]]; then
|
||||||
echo -n $"Editions: ${EDITIONS}" | fmt -w 80
|
echo -n $"Editions: ${EDITIONS}" | fmt -w $(tput cols)
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -49,7 +49,7 @@ function os_support() {
|
||||||
function error_specify_os() {
|
function error_specify_os() {
|
||||||
echo $"ERROR! You must specify an operating system."
|
echo $"ERROR! You must specify an operating system."
|
||||||
echo $"- Supported Operating Systems:"
|
echo $"- Supported Operating Systems:"
|
||||||
os_support | fmt -w 80
|
os_support | fmt -w $(tput cols)
|
||||||
echo -e $"\nTo see all possible arguments, use:\n quickget -h or quickget --help"
|
echo -e $"\nTo see all possible arguments, use:\n quickget -h or quickget --help"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
@ -57,7 +57,7 @@ function error_specify_os() {
|
||||||
function os_supported() {
|
function os_supported() {
|
||||||
if [[ ! "$(os_support)" =~ ${OS} ]]; then
|
if [[ ! "$(os_support)" =~ ${OS} ]]; then
|
||||||
echo -e $"ERROR! ${OS} is not a supported OS.\n"
|
echo -e $"ERROR! ${OS} is not a supported OS.\n"
|
||||||
os_support | fmt -w 80
|
os_support | fmt -w $(tput cols)
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue