1
0
mirror of https://github.com/avatao-content/test-tutorial-framework synced 2025-07-08 09:36:23 +00:00

Fix certain ifs in hack stuff

This commit is contained in:
Kristóf Tóth
2018-06-18 14:53:10 +02:00
parent f37e07d955
commit 8128866c86
3 changed files with 14 additions and 7 deletions

View File

@ -36,8 +36,10 @@ challenge::run() {
local mount_baseimage
local mount_challenge
local mount_volumes
if [ "${HOTRELOAD:-0}" == "1" ]; then
[ -d "${BASEIMAGE_PATH}" ] && mount_baseimage="-v ${BASEIMAGE_PATH}/lib/tfw:/usr/local/lib/tfw"
if [[ "${HOTRELOAD:-0}" == "1" ]]; then
if [[ -d "${BASEIMAGE_PATH}" ]]; then
mount_baseimage="-v ${BASEIMAGE_PATH}/lib/tfw:/usr/local/lib/tfw"
fi
mount_challenge="-v ${CHALLENGE_PATH}/solvable/src:/srv/.tfw"
mount_volumes="${mount_baseimage:-} ${mount_challenge}"
fi