kas-docker: Fix SSH_DIR check

We were missing a closing brace, and the line became rather long as well.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Jan Kiszka 2018-12-14 17:30:51 +01:00 committed by Daniel Wagner
parent fd58905753
commit ccc58c7010

View File

@ -147,7 +147,10 @@ DOCKER_ARGS="-v ${REPO_DIR}:/repo:ro \
-e USER_ID=$(id -u) -e GROUP_ID=$(id -g) --rm"
if [ -n "${SSH_DIR}" ] ; then
[ -d "${SSH_DIR}" ] || echo "Passed SSH_VALUE '${SSH_DIR}' is not a directory" ; exit 1
if [ ! -d "${SSH_DIR}" ]; then
echo "Passed SSH_VALUE '${SSH_DIR}' is not a directory"
exit 1
fi
DOCKER_ARGS="${DOCKER_ARGS} -v $(readlink -f ${SSH_DIR}):/etc/skel/.ssh:ro"
fi