From 64cf5f6e5cf58214f154426be286a7e4e6ffe496 Mon Sep 17 00:00:00 2001 From: Jacob Collins Date: Fri, 30 Dec 2022 09:55:14 +1100 Subject: [PATCH] `egrep` is obsolescent --- lib/InterfaceUtils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/InterfaceUtils.sh b/lib/InterfaceUtils.sh index 8ed1da8..e4a8450 100755 --- a/lib/InterfaceUtils.sh +++ b/lib/InterfaceUtils.sh @@ -99,7 +99,7 @@ function interface_hardware() { esac # 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 InterfaceHardwareBus return 2