From 3b234ae970d9a487e40a090e6fd2ef2d040c5c7b Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 24 Sep 2019 12:59:56 +0300 Subject: [PATCH] pfetch: simplify --- pfetch | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/pfetch b/pfetch index ed27d8c..401be56 100755 --- a/pfetch +++ b/pfetch @@ -3,11 +3,6 @@ # # pfetch - Simple POSIX sh fetch script. -die() { - printf '\033[31;1merror\033[m: %s.\n' "$@" >&2 - exit 1 -} - log() { # The 'log()' function handles the printing of information. # In 'pfetch' (and 'neofetch'!) the printing of the ascii art and info @@ -45,9 +40,8 @@ log() { # Once the cursor is at marker $[6], the script exits. This is the gist # of how this "dynamic" printing and layout works. # - # This method allows ascii art to be stored without markers for - # information and it allows for easy swapping of information order and - # amount. + # This method allows ascii art to be stored without markers for info + # and it allows for easy swapping of info order and amount. # # $[2] ___ $[3] goldie@KISS # $[4](.ยท | $[5] os KISS Linux @@ -82,6 +76,11 @@ log() { log=$((log + 1)) } +die() { + printf '\033[31;1merror\033[m: %s.\n' "$@" >&2 + exit 1 +} + get_title() { case $kernel_name in Linux*|GNU*)