Skip to content

Commit 5c96d4f

Browse files
authored
fix: install script mount point parsing for DMG volumes with spaces (#35)
hdiutil attach -quiet suppresses all stdout, so the mount point was never captured. Remove -quiet and parse the tab-separated output with tail + sed instead.
1 parent f644a5e commit 5c96d4f

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 | grep '/Volumes/' | sed 's/.*\(\/Volumes\/.*\)/\1/' | head -1)"
43+
MOUNT_POINT="$(hdiutil attach "${TMPDIR_INSTALL}/${ARTIFACT}" -nobrowse | tail -1 | sed 's/.* //')"
4444

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

0 commit comments

Comments
 (0)