scripts: Fix volume argument splitting in dev_cli.sh

Use IFS-based splitting instead of parameter expansion to
correctly separate '#'-delimited volume paths in
process_volumes_args(). The previous approach placed all
volumes into a single array element, causing Docker to
receive malformed --volume arguments.

Signed-off-by: Muminul Islam <muislam@microsoft.com>
This commit is contained in:
Muminul Islam
2026-03-26 18:49:56 -07:00
committed by Bo Chen
parent 57e766bdbb
commit 5bb4ea20a5

View File

@@ -165,7 +165,7 @@ process_volumes_args() {
return
fi
exported_volumes=""
arr_vols=("${arg_vols//#/ }")
IFS='#' read -ra arr_vols <<<"$arg_vols"
for var in "${arr_vols[@]}"; do
dev=$(echo "$var" | cut -d ':' -f 1)
if [[ ! -e "$dev" ]]; then