summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-06-23 07:52:18 +0000
committerTimo Teräs <timo.teras@iki.fi>2017-06-23 11:27:41 +0300
commitf39ef92cdedab1de1a41ea6e0e4c06e1049f1efc (patch)
tree3bdc37895bb4b02dd122f9475a4a2fa6fe392b6e
parent597a7f167b7429a5de665c666524aea5ffdaf97a (diff)
downloadabuild-f39ef92cdedab1de1a41ea6e0e4c06e1049f1efc.tar.gz
abuild-f39ef92cdedab1de1a41ea6e0e4c06e1049f1efc.tar.bz2
abuild-f39ef92cdedab1de1a41ea6e0e4c06e1049f1efc.tar.xz
abuild-f39ef92cdedab1de1a41ea6e0e4c06e1049f1efc.zip
abuild: use portable awk exponentiation operator
-rw-r--r--abuild.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/abuild.in b/abuild.in
index 9b40c35..b09e365 100644
--- a/abuild.in
+++ b/abuild.in
@@ -1333,7 +1333,7 @@ scan_pkgconfig_depends() {
human_size() {
awk '{ split("B KB MB GB TB PB", type)
for(i=5; y < 1 && $1 > 0; i--)
- y = $1 / (2**(10*i))
+ y = $1 / (2^(10*i))
printf("%.1f %s\n", y, type[i+2]) }'
}