diff options
Diffstat (limited to 'scripts/contrib/ddimage')
-rwxr-xr-x | scripts/contrib/ddimage | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/contrib/ddimage b/scripts/contrib/ddimage index ab1d4c7b10..93ebeafc31 100755 --- a/scripts/contrib/ddimage +++ b/scripts/contrib/ddimage | |||
@@ -39,7 +39,7 @@ device_details() { | |||
39 | echo " model: UNKNOWN" | 39 | echo " model: UNKNOWN" |
40 | fi | 40 | fi |
41 | if [ -f "/sys/class/block/$DEV/size" ]; then | 41 | if [ -f "/sys/class/block/$DEV/size" ]; then |
42 | echo " size: $[$(cat /sys/class/block/$DEV/size)*BLOCK_SIZE] bytes" | 42 | echo " size: $(($(cat /sys/class/block/$DEV/size) * $BLOCK_SIZE)) bytes" |
43 | else | 43 | else |
44 | echo " size: UNKNOWN" | 44 | echo " size: UNKNOWN" |
45 | fi | 45 | fi |