Make output much easier to read.

pull/166/head
IceCodeNew 2020-10-13 16:02:46 +08:00
parent 7b5fe33c58
commit ae19b89b93
1 changed files with 3 additions and 1 deletions

View File

@ -34,8 +34,9 @@ systemd_cat_config() {
if systemd-analyze --help | grep -qw 'cat-config'; then
systemd-analyze --no-pager cat-config "$@"
else
echo
echo "${aoi}~~~~~~~~~~~~~~~~"
cat "$@" "$1".d/*
echo "${aoi}~~~~~~~~~~~~~~~~"
echo "${red}warning: ${green}The systemd version on the current operating system is too low."
echo "${red}warning: ${green}Please consider to upgrade the systemd or the operating system.${reset}"
fi
@ -512,6 +513,7 @@ main() {
install_software "$package_provide_tput" 'tput'
red=$(tput setaf 1)
green=$(tput setaf 2)
aoi=$(tput setaf 6)
reset=$(tput sgr0)
# Parameter information