diff --git a/var/local/xcache/rm_cached_file.sh b/var/local/xcache/rm_cached_file.sh index 1853535d832bc01c8adf8e58e61941b89432e0a9..623544224992c392b50f608dea18e7c409e72f10 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"