Skip to content

Commit 67e5ba9

Browse files
committed
Fix formatting
1 parent eb308c0 commit 67e5ba9

File tree

1 file changed

+22
-24
lines changed

1 file changed

+22
-24
lines changed

run/SimExamples/HepMC/child.sh

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,36 +7,36 @@ out=
77

88
usage()
99
{
10-
cat <<-EOF
11-
Usage: $0 [OPTIONS]
10+
cat <<EOF
11+
Usage: $0 [OPTIONS]
1212
13-
Options:
13+
Options:
1414
15-
-c,--cmdline COMMAND Command line
16-
-s,--seed SEED Random number seed ($seed)
17-
-n,--nevents EVENTS Number of events ($nev)
18-
-o,--output OUTPUT Output prefix ($out)
19-
-- Rest of command line sent to o2-sim
15+
-c,--cmdline COMMAND Command line
16+
-s,--seed SEED Random number seed ($seed)
17+
-n,--nevents EVENTS Number of events ($nev)
18+
-o,--output OUTPUT Output prefix ($out)
19+
-- Rest of command line sent to o2-sim
2020
21-
COMMAND must be quoted if it contains spaces or other special
22-
characters
21+
COMMAND must be quoted if it contains spaces or other special
22+
characters
2323
24-
Below follows the help output of o2-sim
24+
Below follows the help output of o2-sim
2525
26-
EOF
26+
EOF
2727
}
2828

2929
while test $# -gt 0 ; do
3030
case $1 in
31-
-c|--cmdline) cmd="$2" ; shift ;;
32-
-s|--seed) seed=$2 ; shift ;;
33-
-n|--nevents) nev=$2 ; shift ;;
34-
-o|--output) out=$2 ; shift ;;
35-
-h|--help) usage; o2-sim --help full ; exit 0 ;;
36-
--) shift ; break ;;
37-
*) echo "Unknown option '$1', did you forget '--'?" >/dev/stderr
38-
exit 1
39-
;;
31+
-c|--cmdline) cmd="$2" ; shift ;;
32+
-s|--seed) seed=$2 ; shift ;;
33+
-n|--nevents) nev=$2 ; shift ;;
34+
-o|--output) out=$2 ; shift ;;
35+
-h|--help) usage; o2-sim --help full ; exit 0 ;;
36+
--) shift ; break ;;
37+
*) echo "Unknown option '$1', did you forget '--'?" >/dev/stderr
38+
exit 1
39+
;;
4040
esac
4141
shift
4242
done
@@ -46,8 +46,6 @@ if test "x$out" = "x" ; then
4646
fi
4747
out=`echo "$out" | tr ' ' '_'`
4848

49-
export VMCWORKDIR=${O2_ROOT}/share
49+
export VMCWORKDIR=${O2_ROOT}/share
5050
o2-sim -g hepmc --configKeyValues "HepMC.progCmd=$cmd" \
5151
--outPrefix "$out" --seed $seed --nEvents $nev $@
52-
53-

0 commit comments

Comments
 (0)