Skip to content

Commit 9645bb3

Browse files
committed
fix bug when symlinks are empty in entrypoint
1 parent 92ef7d0 commit 9645bb3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

utils/entrypoint.sh

+5
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ rm -rf /home/${NB_USER}/.zshrc
2626
# create the working directory
2727
mkdir -p ${WORKING_DIR}
2828

29+
if [[ -z $SYMLINK_TARGETS ]] || [[ -z $SYMLINK_PATHS ]] || [[ -z $SYMLINK_TYPES ]]; then
30+
exec "$@" # Run the task
31+
exit
32+
fi
33+
2934
# Make symlinks between elements of SYMLINK_PATHS and SYMLINK_TARGETS
3035
IFS=: read -r -d '' -a target_array < <(printf '%s:\0' "$SYMLINK_TARGETS")
3136
IFS=: read -r -d '' -a path_array < <(printf '%s:\0' "$SYMLINK_PATHS")

0 commit comments

Comments
 (0)