From 6192bb78fbd0388e1626ce5163e4fe1064b07dc4 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Tue, 30 Sep 2014 14:52:46 +0200 Subject: [PATCH] Use $((EXPRESSION)) instead of $[EXPRESSION] $((EXPRESSION)) is POSIX-conform and should be preferred. Change-Id: Ibd0524194aeda40961e202b6761dbaed2ea27dfa --- lib/common-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common-functions b/lib/common-functions index 9189634c..6bd1f975 100644 --- a/lib/common-functions +++ b/lib/common-functions @@ -20,7 +20,7 @@ function tmpfs_check() { total_kB=$(awk '/^MemTotal/ { print $2 }' /proc/meminfo) # tmpfs uses by default 50% of the available RAM, so the RAM should be at least # the double of the minimum tmpfs size required - RAM_NEEDED=$[ $DIB_MIN_TMPFS * 2 ] + RAM_NEEDED=$(($DIB_MIN_TMPFS * 2)) [ $total_kB -lt $(($RAM_NEEDED*1024*1024)) ] || return 0 echo "Not enough RAM to use tmpfs for build. ($total_kB < ${RAM_NEEDED}G)" return 1