diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2019-09-24 16:06:10 +0300 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2019-09-24 16:06:10 +0300 |
| commit | 116021d6051cc1d98f5fb2f16f43805cef2395b7 (patch) | |
| tree | 0375be564c3db70b979e08f06b435bee2b342375 | |
| parent | 678feb26082d95c54b95a78d996b29dce64863ea (diff) | |
| download | pfetch-116021d6051cc1d98f5fb2f16f43805cef2395b7.tar.gz | |
pfetch: error on unsupported OS.
| -rwxr-xr-x | pfetch | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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) |
