mirror of
https://github.com/KittyKatt/screenFetch.git
synced 2026-01-10 06:48:00 -05:00
Fix shell detection on Raspbian
This commit is contained in:
@@ -1489,7 +1489,7 @@ detectshell_ver () {
|
||||
}
|
||||
detectshell () {
|
||||
if [[ ! "${shell_type}" ]]; then
|
||||
if [[ "${distro}" == "Cygwin" || "${distro}" == "Msys" || "${distro}" == "Haiku" || "${distro}" == "Alpine Linux" || "${OSTYPE}" == "gnu" || "${distro}" == "TinyCore" ]]; then
|
||||
if [[ "${distro}" == "Cygwin" || "${distro}" == "Msys" || "${distro}" == "Haiku" || "${distro}" == "Alpine Linux" || "${OSTYPE}" == "gnu" || "${distro}" == "TinyCore" || "${distro}" == "Raspbian" ]]; then
|
||||
shell_type=$(echo "$SHELL" | awk -F'/' '{print $NF}')
|
||||
elif readlink -f "$SHELL" | grep -q "busybox"; then
|
||||
shell_type="BusyBox"
|
||||
|
||||
Reference in New Issue
Block a user