1
0
Fork 0

remove usage of egrep

This commit is contained in:
Massaki Archambault 2022-11-07 17:02:49 -05:00
parent 76a138ab04
commit 7c2c6487b5
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ ZSH_THEME_GIT_PROMPT_BEHIND="%{$fg_bold[white]%}↓"
# Evaluate if root user
__is_root() {
if uname -s | egrep '^(CYGWIN)|(MINGW)|(MSYS)' 2>&1 >/dev/null; then
if uname -s | grep -E '^(CYGWIN)|(MINGW)|(MSYS)' 2>&1 >/dev/null; then
id -G | grep 544 2>&1 >/dev/null
else
[ $UID -eq 0 ]