summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2014-06-10 09:43:50 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2014-06-10 20:17:47 +0200
commit610f9fef74b8cdeb1f1f1845db68d3cfaab46665 (patch)
tree8a5750d8034031400c416bf6aead6df62edb37d3 /scripts
parent9606474215748ba68b32fd8b89360d0e165b3651 (diff)
downloadptxdist-610f9fef74b8cdeb1f1f1845db68d3cfaab46665.tar.gz
ptxdist-610f9fef74b8cdeb1f1f1845db68d3cfaab46665.tar.xz
libptxdist: remove some useless echo
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/libptxdist.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/libptxdist.sh b/scripts/libptxdist.sh
index 7daa8c38b..2b004c79d 100644
--- a/scripts/libptxdist.sh
+++ b/scripts/libptxdist.sh
@@ -677,8 +677,8 @@ ptxd_human_to_number() {
exit 1
fi
- num=$(echo "$1" | sed 's/m$/*1024*1024/I')
- num=$(echo "$num" | sed 's/k$/*1024/I')
+ num=$(sed 's/m$/*1024*1024/I' <<< "${1}")
+ num=$(sed 's/k$/*1024/I' <<< "${num}")
echo $((num))
}
@@ -692,8 +692,7 @@ ptxd_name_to_NAME() {
echo "usage: ptxd_name_to_NAME <pkg-name>"
exit 1
fi
- name="$(echo "${1}" | tr 'a-z-' 'A-Z_')"
- echo "${name}"
+ tr 'a-z-' 'A-Z_' <<< "${1}"
}
export -f ptxd_name_to_NAME