From 9e8e803033ba32cd0e4d7b214ee5d09fa55d629b Mon Sep 17 00:00:00 2001 From: Ryan Campbell <89273172+bigtallcampbell@users.noreply.github.com> Date: Wed, 19 Jun 2024 14:19:28 -0500 Subject: [PATCH] updating source mount to be a starts with instead of exact match (#38) Co-authored-by: Ryan Campbell --- modules/m_100_collect_container_info.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/m_100_collect_container_info.sh b/modules/m_100_collect_container_info.sh index b7949d2..885556d 100644 --- a/modules/m_100_collect_container_info.sh +++ b/modules/m_100_collect_container_info.sh @@ -76,7 +76,7 @@ SPACEFX_UPDATE_END" --disable_log if [[ "$HOSTNAME" == "codespaces"* ]]; then run_a_script "jq <${SPACEFX_DIR}/tmp/${APP_NAME}/container_info.json -r '.[0].HostConfig.Mounts[0].Target'" CONTAINER_WORKING_DIR else - run_a_script "jq <${SPACEFX_DIR}/tmp/${APP_NAME}/container_info.json -r '.[0].Mounts[] | select(.Source == \"${HOST_FOLDER}\") | .Destination'" CONTAINER_WORKING_DIR + run_a_script "jq <${SPACEFX_DIR}/tmp/${APP_NAME}/container_info.json -r '.[0].Mounts[] | select(.Source | startswith(\"${HOST_FOLDER}\")) | .Destination'" CONTAINER_WORKING_DIR fi