remove usage of egrep
This commit is contained in:
parent
76a138ab04
commit
7c2c6487b5
|
@ -22,7 +22,7 @@ ZSH_THEME_GIT_PROMPT_BEHIND="%{$fg_bold[white]%}↓"
|
||||||
|
|
||||||
# Evaluate if root user
|
# Evaluate if root user
|
||||||
__is_root() {
|
__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
|
id -G | grep 544 2>&1 >/dev/null
|
||||||
else
|
else
|
||||||
[ $UID -eq 0 ]
|
[ $UID -eq 0 ]
|
||||||
|
|
Loading…
Reference in New Issue