Skip to content

Commit

Permalink
fixed the code trying to add directories
Browse files Browse the repository at this point in the history
  • Loading branch information
dteague authored May 23, 2017
1 parent 27ccdb4 commit 72ac7e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Analyze_Grid/merge_ext.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ do
continue
fi

if [ $(ls ${tag}* | wc -l) -ne 1 ]
if [ $(ls ${tag}*root | wc -l) -ne 1 ]
then
hadd tmp_dir/${tag}.root $(ls ${tag}*)
rm $(ls ${tag}*)
hadd tmp_dir/${tag}.root $(ls ${tag}*root)
rm $(ls ${tag}*root)
else
mv $file $tag.root
continue
Expand All @@ -30,4 +30,4 @@ do
done

mv tmp_dir/*root . 2>/dev/null
rm -r tmp_dir
rm -r tmp_dir

0 comments on commit 72ac7e4

Please sign in to comment.