20 lines
551 B
Bash
Executable File
20 lines
551 B
Bash
Executable File
#!/bin/zsh
|
|
|
|
set -euo pipefail
|
|
|
|
script_dir=${0:A:h}
|
|
catalog_dir=${script_dir:h}
|
|
outputs_dir=${catalog_dir:h}
|
|
bundle_dir="$outputs_dir/Calculet-NPU-analysis-bundle-20260801"
|
|
image="$bundle_dir/remote-export/Calculet-NPU-Linux-case-sensitive-views.sparsebundle"
|
|
mount_point="$bundle_dir/remote-export/extracted-case-sensitive"
|
|
|
|
if mount | grep -Fq " on $mount_point "; then
|
|
print -r -- "Already mounted: $mount_point"
|
|
exit 0
|
|
fi
|
|
|
|
mkdir -p "$mount_point"
|
|
hdiutil attach -nobrowse -mountpoint "$mount_point" "$image"
|
|
print -r -- "Mounted: $mount_point"
|