From 4e20cef248fccacd98c24f36262f945fbfca8b7f Mon Sep 17 00:00:00 2001 From: Nikolai Hartmann <Nikolai.Hartmann@physik.lmu.de> Date: Fri, 17 Feb 2023 14:36:44 +0100 Subject: [PATCH] change to path matching --- var/local/xcache/rm_cached_file.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/var/local/xcache/rm_cached_file.sh b/var/local/xcache/rm_cached_file.sh index 1853535..6235442 100755 --- a/var/local/xcache/rm_cached_file.sh +++ b/var/local/xcache/rm_cached_file.sh @@ -7,14 +7,14 @@ if [ $# -lt 1 ]; then exit 1 fi -fpat=$1'*' +fpat='*'$1'*' # check cache xrdpath=/srv/xcache/namespace/atlas/ -flist=`find $xrdpath -xtype f -name "$fpat" ` +flist=`find $xrdpath -xtype f -path "$fpat" ` # check RAM disk -fl2=`find /dev/shm/atlas -xtype f -name "$fpat" ` +fl2=`find /dev/shm/atlas -xtype f -path "$fpat" ` flist="$flist $fl2" -- GitLab