Skip to content

Commit

Permalink
Fixed default name of HepMC file
Browse files Browse the repository at this point in the history
  • Loading branch information
jackal1-66 committed Dec 9, 2022
1 parent f005a49 commit 38ec681
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/epos
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ do
;;
-hepmc) shift
hepmc="yes"
if [ ! -z "$1" ]; then
if [ ! -z "$1" ] && [ $# -gt 1 ]; then
hepfile="$1"
shift
fi
Expand Down Expand Up @@ -269,6 +269,9 @@ fi
if [ ! -s ${hepfile}.hepmc ]; then
rm -f ${hepfile}.hepmc
fi
if [ ! -s $hepfile ]; then
rm -f ${hepfile}
fi
if [ -s ${hepfile}.hepmc ]; then
if [ "$hepmc" = "no" ]; then
rm -f ${hepfile}.hepmc
Expand Down

0 comments on commit 38ec681

Please sign in to comment.