Yet another "fix #456"

This commit is contained in:
Viktor Oreshkin
2017-06-14 22:42:26 +03:00
parent ad85117f67
commit 5f7d3f7c56

View File

@@ -1498,7 +1498,7 @@ detectshell () {
if [[ ! "${shell_type}" ]]; 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
elif readlink -f "$SHELL" 2>&1 | grep -q "busybox"; then
shell_type="BusyBox"
else
if [[ "${OSTYPE}" == "linux-gnu" || "${OSTYPE}" == "linux" || "${OSTYPE}" == "linux-musl" ]]; then