aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2019-09-24 16:06:10 +0300
committerDylan Araps <dylan.araps@gmail.com>2019-09-24 16:06:10 +0300
commit116021d6051cc1d98f5fb2f16f43805cef2395b7 (patch)
tree0375be564c3db70b979e08f06b435bee2b342375
parent678feb26082d95c54b95a78d996b29dce64863ea (diff)
downloadpfetch-116021d6051cc1d98f5fb2f16f43805cef2395b7.tar.gz
pfetch: error on unsupported OS.
-rwxr-xr-xpfetch11
1 files 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)