diff --git a/Installation/MacOSX/Bundle/hdiutilwrapper.sh.in b/Installation/MacOSX/Bundle/hdiutilwrapper.sh.in index 1448fe3dab..41e9a7f90d 100755 --- a/Installation/MacOSX/Bundle/hdiutilwrapper.sh.in +++ b/Installation/MacOSX/Bundle/hdiutilwrapper.sh.in @@ -1,7 +1,9 @@ #!/bin/bash -verb="$1" +verb=$1 shift - -@HDIUTIL_EXECUTABLE@ $verb -megabytes @CMAKE_DMG_SIZE@ $@ - +if test "$verb" == "create"; then + @HDIUTIL_EXECUTABLE@ $verb -megabytes @CMAKE_DMG_SIZE@ $@ +else + @HDIUTIL_EXECUTABLE@ $verb $@ +fi