Skip to content

Commit

Permalink
Merge pull request #2377 from cms-sw/set-tmpdir
Browse files Browse the repository at this point in the history
Set TMPDIR in docker_launcher.sh if not set already
  • Loading branch information
smuzaffar authored Nov 18, 2024
2 parents 7ff7c50 + 62a3a9c commit 69d539d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker_launcher.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/bin/bash -ex
if [ "$(uname -m)" = "riscv64" ]; then
if [ -z "${TMPDIR}" ] && [ -n "${WORKSPACE}" ]; then
mkdir -p "${WORKSPACE}/tmp"
export TMPDIR="${WORKSPACE}/tmp"
fi
fi
if [ "${USER}" = "" ] ; then export USER=$(whoami); fi
if [ "${HOME}" = "" ] ; then
if [ "${_CONDOR_SCRATCH_DIR}" != "" ] ; then export HOME="${_CONDOR_SCRATCH_DIR}" ; fi
Expand Down

0 comments on commit 69d539d

Please sign in to comment.