mirror of
https://github.com/KittyKatt/screenFetch.git
synced 2026-01-09 14:28:04 -05:00
fix tcsh shell detection by looking at /proc/$PPID/exe instead of /proc/$PPID/cmdline
This commit is contained in:
@@ -1854,7 +1854,7 @@ detectshell () {
|
||||
shell_type="BusyBox"
|
||||
else
|
||||
if [[ "${OSTYPE}" =~ "linux" ]]; then
|
||||
shell_type=$(tr '\0' '\n' </proc/$PPID/cmdline | head -1)
|
||||
shell_type=$(realpath /proc/$PPID/exe | awk -F'/' '{print $NF}')
|
||||
elif [[ "${distro}" =~ "BSD" ]]; then
|
||||
shell_type=$(ps -p $PPID -o command | tail -1)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user