diff --git a/scripts/proxmox/create-proxmox-resource.sh b/scripts/proxmox/create-proxmox-resource.sh index 7d43d7e..fd4f3a0 100755 --- a/scripts/proxmox/create-proxmox-resource.sh +++ b/scripts/proxmox/create-proxmox-resource.sh @@ -705,8 +705,8 @@ if [[ -z "$built" ]]; then echo "ERROR: no tarball found under result-${target}/tarball after build." >&2 exit 1 fi -mkdir -p "$dest_dir" -cp "$built" "${dest_dir}/${dest_name}" +$sudo_pfx mkdir -p "$dest_dir" +$sudo_pfx cp "$built" "${dest_dir}/${dest_name}" echo "Built and staged: ${dest_dir}/${dest_name}" REMOTE_SCRIPT local_image="$remote_path" @@ -748,8 +748,8 @@ if [[ -z "$built" ]]; then echo "ERROR: no .raw image found in ${repo_dir} after build." >&2 exit 1 fi -mkdir -p "$dest_dir" -mv "$built" "${dest_dir}/${dest_name}" +$sudo_pfx mkdir -p "$dest_dir" +$sudo_pfx mv "$built" "${dest_dir}/${dest_name}" echo "Built and staged: ${dest_dir}/${dest_name}" REMOTE_SCRIPT local_image="$remote_path"