From 366bdde171b96e777261e2419c2281732f6a2411 Mon Sep 17 00:00:00 2001 From: Jonathan Elchison Date: Mon, 19 Dec 2016 06:05:10 -0500 Subject: [PATCH] Add comment explaining why not setting TOOL_DISKUTIL twice --- format-udf.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/format-udf.sh b/format-udf.sh index 1645105..f52bd82 100755 --- a/format-udf.sh +++ b/format-udf.sh @@ -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