Skip to content
This repository was archived by the owner on Apr 24, 2020. It is now read-only.

[Bugfix] Fix failed attempt to open proc files while lacking permission. #1347

Open
wants to merge 1 commit into
base: next
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion functions/utilities.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function __p9k_detect_terminal() {
fi
local pid=$$ termtest=''
while true; do
if test "$pid" = "1" -o "$pid" = ""; then
if test "$pid" = "1" -o "$pid" = "" -o ! -d /proc/${pid}; then
__P9K_TERMINAL="unknown"
return
fi
Expand Down