Skip to content

Commit

Permalink
style: simplify singcache echo statement
Browse files Browse the repository at this point in the history
  • Loading branch information
kelly-sovacool committed Sep 10, 2024
1 parent 8345deb commit 240afd2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions carlisle
Original file line number Diff line number Diff line change
Expand Up @@ -406,13 +406,12 @@ function main(){
echo "Working Dir: $WORKDIR"

if [[ -z "$SING_CACHE_DIR" ]]; then
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}"
echo "singularity cache dir (--singcache) is not set, using ${SING_CACHE_DIR}"
fi
mkdir -p $SING_CACHE_DIR
EXPORT_SING_CACHE_DIR_CMD="export SINGULARITY_CACHEDIR=\"${SING_CACHE_DIR}\""
Expand Down

0 comments on commit 240afd2

Please sign in to comment.