Skip to content

Commit 366bdde

Browse files
committed
Add comment explaining why not setting TOOL_DISKUTIL twice
1 parent c80508e commit 366bdde

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

format-udf.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ echo " using $TOOL_DRIVE_LISTING"
230230
echo -n "[+] Looking for unmount tool..."
231231
# `true` is so that a failure here doesn't cause entire script to exit prematurely
232232
TOOL_UMOUNT=$(which umount 2>/dev/null) || true
233+
# NOTE: 'TOOL_DISKUTIL' has already been set above. no need to set it again here.
233234
# prefer 'diskutil' if available, as it's required on OS X (even if 'umount' is present)
234235
if [[ -x "$TOOL_DISKUTIL" ]]; then
235236
TOOL_UNMOUNT=$TOOL_DISKUTIL

0 commit comments

Comments
 (0)