mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-14 12:37:16 +00:00
Remove PID Check
This commit is contained in:
7
neofetch
7
neofetch
@@ -1640,12 +1640,7 @@ get_term() {
|
||||
esac
|
||||
|
||||
# Check $PPID for terminal emulator.
|
||||
while [[ -z "$term" ]]; do
|
||||
parent="$(get_ppid "$parent")"
|
||||
if [ "$parent" -lt 2 ]; then
|
||||
parent=1
|
||||
term="kernel shell on $(tty)"
|
||||
fi
|
||||
while [[ -z "$term" ]] || ((parent > 1)); do
|
||||
|
||||
name="$(get_process_name "$parent")"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user