From 8c2b755b2e357ffb972880d24c0b18e13d97f662 Mon Sep 17 00:00:00 2001 From: James Tucker Date: Tue, 28 Mar 2023 17:44:39 -0700 Subject: [PATCH] tool/gocross: use grep -E over egrep to avoid warning Recent egrep builds produce a warning: ``` egrep: warning: egrep is obsolescent; using grep -E ``` Updates #cleanup Signed-off-by: James Tucker --- tool/gocross/gocross-wrapper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/gocross/gocross-wrapper.sh b/tool/gocross/gocross-wrapper.sh index 5372b2b1f..623b7cc79 100755 --- a/tool/gocross/gocross-wrapper.sh +++ b/tool/gocross/gocross-wrapper.sh @@ -31,7 +31,7 @@ toolchain="$HOME/.cache/tailscale-go" if [ -d "$toolchain" ]; then # A toolchain exists, but is it recent enough to compile gocross? If not, # wipe it out so that the next if block fetches a usable one. - want_go_minor=$(egrep '^go ' "$repo_root/go.mod" | cut -f2 -d'.') + want_go_minor=$(grep -E '^go ' "$repo_root/go.mod" | cut -f2 -d'.') have_go_minor=$(cut -f2 -d'.' <$toolchain/VERSION) if [ -z "$have_go_minor" -o "$have_go_minor" -lt "$want_go_minor" ]; then rm -rf "$toolchain" "$toolchain.extracted"