From 116021d6051cc1d98f5fb2f16f43805cef2395b7 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 24 Sep 2019 16:06:10 +0300 Subject: [PATCH] pfetch: error on unsupported OS. --- pfetch | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pfetch b/pfetch index 1af48b2..ad3ee1c 100755 --- a/pfetch +++ b/pfetch @@ -85,11 +85,6 @@ log() { info_height=$((info_height + 1)) } -die() { - printf '\033[31;1merror\033[m: %s.\n' "$@" >&2 - exit 1 -} - get_title() { case $os in Linux*|GNU*) @@ -248,6 +243,12 @@ ${c5}_${c4}/\\ ${c7}__)${c4}/${c5}_${c4}) ${c5}\/${c4}-____${c5}\/ " ;; + + *) + printf 'error: %s is not currently supported.\n' "$os" + printf 'error: Open an issue on GitHub for support to be added.\n' + exit 1 + ;; esac # Store the "width" (longest line) and "height" (number of lines)