From 0a9fef1339e084cfe5997aa14f9927ef33b63754 Mon Sep 17 00:00:00 2001 From: Rustmilian <110098609+Rustmilian@users.noreply.github.com> Date: Thu, 11 Jan 2024 16:48:45 -0500 Subject: [PATCH] fgrep: warning: fgrep is obsolescent; using grep -F --- make.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/make.sh b/make.sh index 0b2c28b..b6b827f 100755 --- a/make.sh +++ b/make.sh @@ -22,9 +22,9 @@ else fi if [ -f /usr/include/fastcommon/_os_define.h ]; then - OS_BITS=$(fgrep OS_BITS /usr/include/fastcommon/_os_define.h | awk '{print $NF;}') + OS_BITS=$(grep -F OS_BITS /usr/include/fastcommon/_os_define.h | awk '{print $NF;}') elif [ -f /usr/local/include/fastcommon/_os_define.h ]; then - OS_BITS=$(fgrep OS_BITS /usr/local/include/fastcommon/_os_define.h | awk '{print $NF;}') + OS_BITS=$(grep -F OS_BITS /usr/local/include/fastcommon/_os_define.h | awk '{print $NF;}') else OS_BITS=64 fi @@ -105,7 +105,7 @@ elif [ "$uname" = "FreeBSD" ]; then fi if [ $have_pthread -eq 0 ] && [ "$uname" != "Darwin" ]; then - /sbin/ldconfig -p | fgrep libpthread.so > /dev/null + /sbin/ldconfig -p | grep -F libpthread.so > /dev/null if [ $? -eq 0 ]; then LIBS="$LIBS -lpthread" else