Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1059)

Unified Diff: src/scripts/image_to_usb.sh

Issue 2429004: Fixed size quotation (size is in 512 bytes blocks) (Closed) Base URL: ssh://gitrw.chromium.org/chromiumos
Patch Set: Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/image_to_usb.sh
diff --git a/src/scripts/image_to_usb.sh b/src/scripts/image_to_usb.sh
index 9a28e4c0b2eb151423183878ed32e350dcf86d7a..361750cb9309782490d02ec56d4664991563f352 100755
--- a/src/scripts/image_to_usb.sh
+++ b/src/scripts/image_to_usb.sh
@@ -90,7 +90,7 @@ if [ -z "${FLAGS_to}" ]; then
echo " /dev/$disk:"
echo " Manufacturer: $(get_disk_info $disk manufacturer)"
echo " Product: $(get_disk_info $disk product)"
- echo " Size: $(cat /sys/block/$disk/size) kBytes"
+ echo " Size: $[$(cat /sys/block/$disk/size) * 512] bytes"
done
fi
exit 1
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698