projects
/
snf-image
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
01da0f7
)
Remove redundant normalize_unit function
author
Nikos Skalkotos
<skalkoto@grnet.gr>
Thu, 10 May 2012 14:32:34 +0000
(17:32 +0300)
committer
Nikos Skalkotos
<skalkoto@grnet.gr>
Thu, 10 May 2012 14:32:34 +0000
(17:32 +0300)
snf-image-helper/common.sh
patch
|
blob
|
history
diff --git
a/snf-image-helper/common.sh
b/snf-image-helper/common.sh
index
ec10768
..
7bd72ee
100644
(file)
--- a/
snf-image-helper/common.sh
+++ b/
snf-image-helper/common.sh
@@
-95,19
+95,6
@@
get_distro() {
fi
}
-normalize_unit() {
- unit=$(tr [a-z] [A-Z] <<< $1)
-
- case $unit in
- "S") echo "s";;
- "B"|"") echo "B";;
- "KB") echo "kB";;
- "MB") echo "MB";;
- "GB") echo "GB";;
- *) log_error "Unknown unit type: \`$1'";;
- esac
-}
-
get_last_partition_id() {
local dev="$1"
if ! output="$("$PARTED" -s -m "$dev" print)"; then