Skip to content

Commit

Permalink
set SINGULARITY_DIR to default
Browse files Browse the repository at this point in the history
  • Loading branch information
akhanf committed Feb 7, 2018
1 parent 97bc3bb commit e109684
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions shub-cache
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
#!/bin/bash

# Line below locks the script so cannot be run simultaneously (i.e. to prevent conflicts)
# Line below locks the script so cannot be run simultaneously (i.e. to prevent conflicts) -- however, does not work on home directory filesystem, only works on project space filesystem...

#[ "${FLOCKER}" != "$0" ] && exec env FLOCKER="$0" flock -en "$0" "$0" "$@" || :


if [ ! -n "$SINGULARITY_DIR" ]
then
echo "SINGULARITY_DIR must be set" >&2
exit 1
echo "SINGULARITY_DIR not set, reverting to default: /project/6007967/akhanf/singularity" >&2
export SINGULARITY_DIR=/project/6007967/akhanf/singularity
fi

if [ ! "$#" = 1 ]
Expand Down

0 comments on commit e109684

Please sign in to comment.