Skip to content

Commit

Permalink
fix: set singularity cachedir inside workdir
Browse files Browse the repository at this point in the history
temporary fix #33

later we will provide a more robust solution that copies previously downloaded SIFs
  • Loading branch information
kelly-sovacool committed Sep 10, 2024
1 parent f17382b commit 7eca4a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions aspen
Original file line number Diff line number Diff line change
Expand Up @@ -765,11 +765,11 @@ function main(){

# CLUSTERSTATUSCMD="${PIPELINE_HOME}/resources/cluster_status.sh"

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

case $RUNMODE in
init) init && exit 0;;
Expand Down

0 comments on commit 7eca4a5

Please sign in to comment.