Skip to content

Commit

Permalink
Add comment explaining why not setting TOOL_DISKUTIL twice
Browse files Browse the repository at this point in the history
  • Loading branch information
JElchison committed Dec 19, 2016
1 parent c80508e commit 366bdde
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions format-udf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ echo " using $TOOL_DRIVE_LISTING"
echo -n "[+] Looking for unmount tool..."
# `true` is so that a failure here doesn't cause entire script to exit prematurely
TOOL_UMOUNT=$(which umount 2>/dev/null) || true
# NOTE: 'TOOL_DISKUTIL' has already been set above. no need to set it again here.
# prefer 'diskutil' if available, as it's required on OS X (even if 'umount' is present)
if [[ -x "$TOOL_DISKUTIL" ]]; then
TOOL_UNMOUNT=$TOOL_DISKUTIL
Expand Down

0 comments on commit 366bdde

Please sign in to comment.