From dbdaacf17caaa30065990d05ab060c6f1cc916b7 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Thu, 11 Feb 2021 10:16:04 +0100
Subject: [PATCH] fix internal grep for function

---
 cm.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cm.sh b/cm.sh
index b560bcf..28b3584 100755
--- a/cm.sh
+++ b/cm.sh
@@ -396,7 +396,7 @@ _testStaging
 test -z "${CM_diracme}" && CM_diracme=./certs
 test -z "${CM_dircsr}"  && CM_dircsr=./csr
 
-grep "function\ public_$1" $0 >/dev/null 
+grep "function\ public_$1" $( basename $0 ) >/dev/null 
 if [ $# -gt 0 -a $? -eq 0 ]; then
 	# _wd $*
 	action=$1
-- 
GitLab