diff options
author | Paul Sokolovsky <paul.sokolovsky@linaro.org> | 2012-01-06 17:53:00 +0200 |
---|---|---|
committer | Paul Sokolovsky <paul.sokolovsky@linaro.org> | 2012-01-06 17:53:00 +0200 |
commit | 46031281665f1709d07ff630ff6000a43d63ea9f (patch) | |
tree | 7c2a6df9564b522bd4567aaa8b56e66fbc00c898 /node | |
parent | b3fb0fa8fc8da5d05fa86060defdd621cd9a3b3d (diff) |
Use short-circuit OR syntax to avoid errors for non-numeric args.
Diffstat (limited to 'node')
-rwxr-xr-x | node/build | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -39,7 +39,7 @@ mkdir build ramdisk_size=$(get_ramdisk_size $2) # Put build/* on a ramdisk to speed up build -if [ -z "$ramdisk_size" -o "$ramdisk_size" -gt 0 ]; then +if [ -z "$ramdisk_size" ] || [ "$ramdisk_size" -gt 0 ]; then mem_total=`cat /proc/meminfo | grep MemTotal | sed -s 's/[^0-9]*\([0-9]*\) kB/\1/'` if [ "$mem_total" -gt 15680064 ]; then ramisk_size=${ramdisk_size:-11750M} |