From dd4e6f3ed65329947c7a3ac9c12e4a6804f34f04 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Tue, 16 Feb 2021 17:39:55 +0100 Subject: [PATCH] accept IOC dirs in .../*_ioc/ --- iocsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iocsh b/iocsh index f436191..433bab7 100755 --- a/iocsh +++ b/iocsh @@ -216,7 +216,8 @@ IOC=$(hostname|tr -d '\r') # trailing possible domain name IOC=${IOC%%.*} # or get IOC name from start directory following PSI convention -if [ $(basename $(dirname $PWD)) = "ioc" ] +D=$(basename $(dirname $PWD)) +if [ ${D#*_} = "ioc" ] then IOC=$(basename $PWD) fi