base-files: replace egrep with grep -E to make busybox happy.
This commit is contained in:
@@ -32,7 +32,7 @@ if [ -z "$USER_LS_COLORS" ]; then
|
||||
|
||||
eval `dircolors --sh "$COLORS" 2>/dev/null`
|
||||
[ -z "$LS_COLORS" ] && return
|
||||
egrep -qi "^COLOR.*none" $COLORS >/dev/null 2>/dev/null && return
|
||||
grep -Eqi "^COLOR.*none" $COLORS >/dev/null 2>/dev/null && return
|
||||
fi
|
||||
|
||||
alias ll='ls -l --color=auto' 2>/dev/null
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Functions and aliases go in /etc/bashrc
|
||||
|
||||
pathmunge () {
|
||||
if ! echo $PATH | /usr/bin/egrep -q "(^|:)$1($|:)" ; then
|
||||
if ! echo $PATH | grep -Eq "(^|:)$1($|:)" ; then
|
||||
if [ "$2" = "after" ] ; then
|
||||
PATH=$PATH:$1
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user