From 3e772152ad1ee211b88b4efebeb6191f55e0d91c Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Mon, 26 Jan 2026 10:34:05 -0600 Subject: [PATCH] Append workspace basename to guest_path --- bin/qvm-run | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bin/qvm-run b/bin/qvm-run index 962ed06..99cb73a 100755 --- a/bin/qvm-run +++ b/bin/qvm-run @@ -59,8 +59,10 @@ EOF register_workspace() { local workspace_path="$1" local hash="$2" + local dir_name + dir_name=$(basename "$workspace_path") local mount_tag="ws_${hash}" - local guest_path="/workspace/${hash}" + local guest_path="/workspace/${hash}_${dir_name}" # Create workspaces.json if it doesn't exist if [[ ! -f "$QVM_WORKSPACES_FILE" ]]; then @@ -172,11 +174,13 @@ main() { local workspace_path workspace_path="$(pwd)" - # Generate workspace hash + # Generate workspace hash and guest path local hash hash=$(workspace_hash "$workspace_path") + local dir_name + dir_name=$(basename "$workspace_path") - local guest_path="/workspace/${hash}" + local guest_path="/workspace/${hash}_${dir_name}" log_info "Workspace: $workspace_path" log_info "Guest path: $guest_path"