diff --git a/tools/osx_packaging/osx_build b/tools/osx_packaging/osx_build index b697be8f0c..1a523e2b31 100755 --- a/tools/osx_packaging/osx_build +++ b/tools/osx_packaging/osx_build @@ -992,7 +992,7 @@ mkdir -p "$MNTPATH" TMPDMG="${TMPDMG}.dmg" -trap "rm -rf $MNTPATH $TMPDMG ${TMPDMG}.dmg $ICNSTMP" EXIT +trap "rm -rf $MNTPATH $TMPDMG $ICNSTMP" EXIT hdiutil create -megabytes $DMGMEGABYTES -fs HFS+ -volname "${VOLNAME}" "$TMPDMG" DiskDevice=$(hdid -nomount "$TMPDMG" | grep Apple_HFS | cut -f 1 -d ' ')