Skip to content

Commit aafbfbb

Browse files
committed
Allow empty mount_points
1 parent 5d88cf0 commit aafbfbb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docker2singularity.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,12 @@ rm -rf $TMPDIR
164164
################################################################################
165165
### Permissions ################################################################
166166
################################################################################
167+
if [ "${mount_points}" ]; then
167168
echo "(6/9) Adding mount points..."
168169
singularity exec --writable --contain $new_container_name /bin/sh -c "mkdir -p ${mount_points}"
170+
else
171+
echo "(6/9) Skipping mount points..."
172+
fi
169173

170174
# making sure that any user can read and execute everything in the container
171175
echo "(7/9) Fixing permissions..."

0 commit comments

Comments
 (0)