Skip to content

Commit

Permalink
updating source mount to be a starts with instead of exact match (#38)
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Campbell <rycampbe@microsoft.com>
  • Loading branch information
bigtallcampbell and Ryan Campbell authored Jun 19, 2024
1 parent a460ea7 commit 9e8e803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/m_100_collect_container_info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 9e8e803

Please sign in to comment.