Skip to content

Commit

Permalink
Merge pull request #46940 from bbilin/CMSSW_10_6_X
Browse files Browse the repository at this point in the history
Backport of Update run_generic_tarball_cvmfs.sh
  • Loading branch information
cmsbuild authored Dec 14, 2024
2 parents ba6e713 + 78203b8 commit 5018348
Showing 1 changed file with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,8 @@ tar -xaf ${path}
# and fallback to /tmp
export TMPDIR=${TMPDIR:-${_CONDOR_SCRATCH_DIR:-/tmp}}

# define singularity
if [ "$use_gridpack_env" != false ]; then
if [ -n "$scram_arch_version" ]; then
sing=$(echo ${scram_arch_version} | sed -E 's/^[^0-9]*([0-9]{1,2}).*/\1/')
elif egrep -q "scram_arch_version=[^$]" runcmsgrid.sh; then
sing=$(grep "scram_arch_version=[^$]" runcmsgrid.sh | sed -E 's/^[^0-9]*([0-9]{1,2}).*/\1/')
fi
if [ -n "${sing}" ]; then
sing="cmssw-el"${sing}" --"
fi
fi

#generate events
${sing} ./runcmsgrid.sh $nevt $rnum $ncpu ${@:5}
./runcmsgrid.sh $nevt $rnum $ncpu ${@:5}

mv cmsgrid_final.lhe $LHEWORKDIR/

Expand Down

0 comments on commit 5018348

Please sign in to comment.