Skip to content

Commit

Permalink
feat: use /data/USER for sing cache dir if available
Browse files Browse the repository at this point in the history
  • Loading branch information
kelly-sovacool committed Sep 10, 2024
1 parent 7eca4a5 commit 54e2de6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions aspen
Original file line number Diff line number Diff line change
Expand Up @@ -766,8 +766,14 @@ function main(){
# CLUSTERSTATUSCMD="${PIPELINE_HOME}/resources/cluster_status.sh"

if [[ -z "$SING_CACHE_DIR" ]]; then
echo "singularity cache dir (--singcache) is not set, using ${WORKDIR}/.singularity"
SING_CACHE_DIR="${WORKDIR}/.singularity"
echo "singularity cache dir (--singcache) is not set"
if [[ -d "/data/$USER" ]]; then
SING_CACHE_DIR="/data/$USER/.singularity"
else
SING_CACHE_DIR="${WORKDIR}/.singularity"
fi
echo "\tusing ${SING_CACHE_DIR}"
mkdir -p $SING_CACHE_DIR
fi
EXPORT_SING_CACHE_DIR_CMD="export SINGULARITY_CACHEDIR=\"${SING_CACHE_DIR}\""

Expand Down

0 comments on commit 54e2de6

Please sign in to comment.