Skip to content

fix: install script mount point parsing#34

Merged
jcanizalez merged 1 commit intomainfrom
fix/install-mount-parsing
Mar 15, 2026
Merged

fix: install script mount point parsing#34
jcanizalez merged 1 commit intomainfrom
fix/install-mount-parsing

Conversation

@jcanizalez
Copy link
Copy Markdown
Collaborator

Summary

  • Fix hdiutil attach output parsing that broke when DMG volume names contain spaces (e.g., "VibeGrid 0.1.0-arm64")
  • Replace awk '{print $NF}' with grep + sed to capture the full /Volumes/... path

Test plan

  • Run curl -fsSL https://raw.githubusercontent.com/jcanizalez/vibegrid/main/install.sh | sh on macOS arm64
  • Verify DMG mounts and app copies to /Applications successfully

The hdiutil attach output parsing used awk '{print $NF}' which only
captures the last space-separated field. Volume names like
"VibeGrid 0.1.0-arm64" broke the mount path extraction. Switch to
sed + grep to capture the full /Volumes/... path.
Copilot AI review requested due to automatic review settings March 15, 2026 12:34
@jcanizalez jcanizalez merged commit f644a5e into main Mar 15, 2026
5 checks passed
@jcanizalez jcanizalez deleted the fix/install-mount-parsing branch March 15, 2026 12:36
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the macOS installer script’s DMG mount-point detection to be more tolerant of hdiutil attach output variations.

Changes:

  • Adjusted hdiutil attach output parsing to extract a /Volumes/... path via grep/sed (instead of tail/awk).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread install.sh

echo "Mounting DMG..."
MOUNT_POINT="$(hdiutil attach "${TMPDIR_INSTALL}/${ARTIFACT}" -nobrowse -quiet | tail -1 | awk '{print $NF}')"
MOUNT_POINT="$(hdiutil attach "${TMPDIR_INSTALL}/${ARTIFACT}" -nobrowse -quiet | grep '/Volumes/' | sed 's/.*\(\/Volumes\/.*\)/\1/' | head -1)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants