From 738ae1f3fa57adc7d666ecbf391c98984802931c Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Mon, 13 Feb 2012 11:05:00 -0800 Subject: [PATCH] Make sure bc is installed. --- util/install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/util/install.sh b/util/install.sh index 484bff3..ae66859 100755 --- a/util/install.sh +++ b/util/install.sh @@ -27,9 +27,13 @@ if [ "$DIST" = "Ubuntu" ] || [ "$DIST" = "Debian" ]; then install='sudo apt-get -y install' remove='sudo apt-get -y remove' pkginst='sudo dpkg -i' + # Prereqs for this script if ! which lsb_release &> /dev/null; then - $install -y lsb-release + $install lsb-release fi + if ! which bc &> /dev/null; then + $install bc + fi fi if which lsb_release &> /dev/null; then DIST=`lsb_release -is`