pfetch: error on unsupported OS.
This commit is contained in:
parent
678feb2608
commit
116021d605
11
pfetch
11
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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user