|
@@ -21,7 +21,8 @@ bytes_to_gibibytes()
|
|
|
to_bytes()
|
|
|
{
|
|
|
case "${1: -1}" in
|
|
|
- b | [0-9]) echo "${1:0: -1}" ;;
|
|
|
+ b) echo "${1:0: -1}" ;;
|
|
|
+ [0-9]) echo "${1}" ;;
|
|
|
K) kibibytes_to_bytes "${1:0: -1}" ;;
|
|
|
M) mebibytes_to_bytes "${1:0: -1}" ;;
|
|
|
G) gibibytes_to_bytes "${1:0: -1}" ;;
|