Skip to content

Commit ba57b2f

Browse files
committed
fix file finding
1 parent 5638a46 commit ba57b2f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

IPRgeneration/mergeIPRGraphs.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,18 @@ IPRFILE=${2}
1717
CDIR=$(pwd)
1818

1919
# list of files to be merged
20-
FLIST=${SCRATCH}/pedestals-${MOON}-ze-${ZE}.list
20+
FLIST="${SCRATCH}/pedestals.list"
2121
rm -f ${FLIST}
22-
find $SCRATCH -name "*.pedestal.root" > ${FLIST}
22+
find $SCRATCH -name "*.pedestal.root" | sort > ${FLIST}
2323
echo "IPR files to be merged (from ${FLIST}):"
2424
cat ${FLIST}
2525

2626
# merge IPR graphs
2727
root -l -q -b 'mergeIPRGraphs.C( '\"$IPRFILE\"', '\"$FLIST\"' )'
2828

2929
# add log files
30-
for logFileNow in $(ls ${SCRATCH}/*.log)
30+
LOGFILES=$(find $SCRATCH -name "*.log" | sort)
31+
for logFileNow in $LOGFILES
3132
do
3233
logFile=$(basename -- "$logFileNow")
3334
fileTitle="${logFile%.*}"

0 commit comments

Comments
 (0)