Skip to content

Commit f644a5e

Browse files
authored
fix: install script mount point parsing for volume names with spaces (#34)
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.
1 parent 285ef2e commit f644a5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ case "$OS" in
4040
curl -fSL --progress-bar -o "${TMPDIR_INSTALL}/${ARTIFACT}" "$URL"
4141

4242
echo "Mounting DMG..."
43-
MOUNT_POINT="$(hdiutil attach "${TMPDIR_INSTALL}/${ARTIFACT}" -nobrowse -quiet | tail -1 | awk '{print $NF}')"
43+
MOUNT_POINT="$(hdiutil attach "${TMPDIR_INSTALL}/${ARTIFACT}" -nobrowse -quiet | grep '/Volumes/' | sed 's/.*\(\/Volumes\/.*\)/\1/' | head -1)"
4444

4545
if [ -d "/Applications/${APP_NAME}.app" ]; then
4646
echo "Removing previous installation..."

0 commit comments

Comments
 (0)