Skip to content

Commit

Permalink
Merge branch 'moyogo-sierra' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
JElchison committed Sep 30, 2016
2 parents 057c501 + 8f3ea4d commit d08e6a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion format-udf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ echo "[+] Detecting total size..."
if [[ $TOOL_DRIVE_LISTING = $TOOL_BLOCKDEV ]]; then
TOTAL_SIZE=$(sudo blockdev --getsize64 /dev/$DEVICE)
elif [[ -x $TOOL_DISKUTIL ]]; then
TOTAL_SIZE=$(diskutil info $DEVICE | grep -i 'Total Size' | awk -F ':' '{print $2}' | egrep -oi '\([0-9]+ B' | sed 's/[^0-9]//g')
TOTAL_SIZE=$(diskutil info $DEVICE | egrep -i '(Total|Disk) Size' | awk -F ':' '{print $2}' | egrep -oi '\([0-9]+ B' | sed 's/[^0-9]//g')
else
echo "[-] Cannot detect total size" >&2
exit 1
Expand Down

0 comments on commit d08e6a6

Please sign in to comment.