mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user