Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update run_generic_tarball_cvmfs.sh to revert temporarily container s… #46926

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 2 additions & 12 deletions GeneratorInterface/LHEInterface/data/run_generic_tarball_cvmfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,10 @@ 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