Something went wrong. Try again.
An auto tiler for macOS
Something went wrong. Try again.
123456789101112#!/bin/bash
detach_image() { local mountpoint=$1 attempt for (( attempt=1; attempt<=5; attempt++ )); do if hdiutil detach "$mountpoint" >&2; then return 0; fi if (( attempt < 5 )); then sleep "0.$((attempt * 2))"; fi done printf 'Detach retries exhausted for %s; forcing detach.\n' "$mountpoint" >&2 hdiutil detach "$mountpoint" -force >&2}