Fix trap error case
At this point TMPDMG already has .dmg added to it and the original mktemp file was removed above.
This commit is contained in:
parent
617697a823
commit
d2a5fa2d9f
@ -992,7 +992,7 @@ mkdir -p "$MNTPATH"
|
|||||||
|
|
||||||
TMPDMG="${TMPDMG}.dmg"
|
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"
|
hdiutil create -megabytes $DMGMEGABYTES -fs HFS+ -volname "${VOLNAME}" "$TMPDMG"
|
||||||
DiskDevice=$(hdid -nomount "$TMPDMG" | grep Apple_HFS | cut -f 1 -d ' ')
|
DiskDevice=$(hdid -nomount "$TMPDMG" | grep Apple_HFS | cut -f 1 -d ' ')
|
||||||
|
Loading…
Reference in New Issue
Block a user