`egrep` is obsolescent

This commit is contained in:
Jacob Collins 2022-12-30 09:55:14 +11:00 committed by GitHub
parent f7f7a09c2c
commit 64cf5f6e5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ function interface_hardware() {
esac esac
# Check for invalid InterfaceHardwareID (starts or ends with :) .. not a happy face, still won't quote it. # Check for invalid InterfaceHardwareID (starts or ends with :) .. not a happy face, still won't quote it.
if echo "$InterfaceHardwareID" | egrep -q "^:|:$"; then if echo "$InterfaceHardwareID" | grep -Eq "^:|:$"; then
unset InterfaceHardwareID unset InterfaceHardwareID
unset InterfaceHardwareBus unset InterfaceHardwareBus
return 2 return 2