From c16af3a3fd194e25027c3f78bc37479d9f23d1de Mon Sep 17 00:00:00 2001 From: Michael Straube Date: Tue, 15 Oct 2019 18:00:24 +0200 Subject: [PATCH] OS: Add support for Cucumber Linux --- neofetch | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index c8874b37..8695b4d7 100755 --- a/neofetch +++ b/neofetch @@ -879,8 +879,12 @@ get_distro() { elif [[ -f "/etc/os-release" || \ -f "/usr/lib/os-release" || \ - -f "/etc/openwrt_release" ]]; then - files=("/etc/os-release" "/usr/lib/os-release" "/etc/openwrt_release") + -f "/etc/openwrt_release" || \ + -f "/etc/lsb-release" ]]; then + files=("/etc/os-release" + "/usr/lib/os-release" + "/etc/openwrt_release" + "/etc/lsb-release") # Source the os-release file for file in "${files[@]}"; do @@ -5953,6 +5957,32 @@ ${c2} lodd${c1}dolccc${c2}ccox${c1}xoloo EOF ;; + *"Cucumber"*) + set_colors 2 3 + read -rd '' ascii_data <<'EOF' +${c1} `.-://++++++//:-.` + `:/+//${c2}::--------${c1}:://+/:` + -++/:${c2}----..........----${c1}:/++- + .++:${c2}---...........-......---${c1}:++. + /+:${c2}---....-::/:/--//:::-....---${c1}:+/ + `++:${c2}--.....:---::/--/::---:.....--${c1}:++` + /+:${c2}--.....--.--::::-/::--.--.....--${c1}:+/ +-o:${c2}--.......-:::://--/:::::-.......--${c1}:o- +/+:${c2}--...-:-::---:::..:::---:--:-...--${c1}:+/ +o/:${c2}-...-:.:.-/:::......::/:.--.:-...-${c1}:/o +o/${c2}--...::-:/::/:-......-::::::-/-...-${c1}:/o +/+:${c2}--..-/:/:::--:::..:::--::////-..--${c1}:+/ +-o:${c2}--...----::/:::/--/:::::-----...--${c1}:o- + /+:${c2}--....://:::.:/--/:.::://:....--${c1}:+/ + `++:${c2}--...-:::.--.:..:.--.:/:-...--${c1}:++` + /+:${c2}---....----:-..-:----....---${c1}:+/ + .++:${c2}---..................---${c1}:++. + -/+/:${c2}----..........----${c1}:/+/- + `:/+//${c2}::--------:::${c1}/+/:` + `.-://++++++//:-.` +EOF + ;; + "debian_small") set_colors 1 7 3 read -rd '' ascii_data <<'EOF'