abuild: use grep -E instead of egrep
fixes the warning: egrep: warning: egrep is obsolescent; using grep -E
This commit is contained in:
parent
6cef1a2150
commit
04c2c9edde
|
@ -202,12 +202,12 @@ default_sanitycheck() {
|
||||||
is_function package || die "Missing package() function in APKBUILD"
|
is_function package || die "Missing package() function in APKBUILD"
|
||||||
|
|
||||||
if [ -n "$replaces_priority" ] \
|
if [ -n "$replaces_priority" ] \
|
||||||
&& ! echo $replaces_priority | egrep -q '^[0-9]+$'; then
|
&& ! echo $replaces_priority | grep -E -q '^[0-9]+$'; then
|
||||||
die "replaces_priority must be a number"
|
die "replaces_priority must be a number"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$provider_priority" ] \
|
if [ -n "$provider_priority" ] \
|
||||||
&& ! echo $provider_priority | egrep -q '^[0-9]+$'; then
|
&& ! echo $provider_priority | grep -E -q '^[0-9]+$'; then
|
||||||
die "provider_priority must be a number"
|
die "provider_priority must be a number"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -2095,7 +2095,7 @@ fishcomp() {
|
||||||
}
|
}
|
||||||
|
|
||||||
is_function() {
|
is_function() {
|
||||||
type "$1" 2>&1 | head -n 1 | egrep -q "is a (shell )?function"
|
type "$1" 2>&1 | head -n 1 | grep -E -q "is a (shell )?function"
|
||||||
}
|
}
|
||||||
|
|
||||||
do_fakeroot() {
|
do_fakeroot() {
|
||||||
|
|
Loading…
Reference in New Issue