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:
@ -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
|
||||
|
Reference in New Issue
Block a user