diff --git a/hyakvnc b/hyakvnc index 42fc0ea..9095528 100755 --- a/hyakvnc +++ b/hyakvnc @@ -790,12 +790,12 @@ function ghcr_get_oras_sif { log ERROR "Failed to get image info for repository ${repo}" return 1 } - [[ -d "${output_path}" ]] && output_path="${output_path}/sha256:${image_sha256}" # Append the image SHA256 to the output path if it's a directory + [[ -d "${output_path}" ]] && output_path="${output_path}/${image_sha256}" # Append the image SHA256 to the output path if it's a directory if [[ -r "${output_path}" ]]; then log DEBUG "Image already exists at ${output_path}" if check_command sha256sum; then - if sha256sum --quiet --status --ignore-missing --check <(echo "${output_path}" "${image_sha256}"); then + if sha256sum --quiet --status --ignore-missing --check <(echo "${output_path}" "${image_sha256##sha256:}"); then log DEBUG "Image at ${output_path} matches expected SHA256 ${image_sha256}" echo "${output_path}" return 0