Make sure bc is installed.
This commit is contained in:
+5
-1
@@ -27,9 +27,13 @@ if [ "$DIST" = "Ubuntu" ] || [ "$DIST" = "Debian" ]; then
|
|||||||
install='sudo apt-get -y install'
|
install='sudo apt-get -y install'
|
||||||
remove='sudo apt-get -y remove'
|
remove='sudo apt-get -y remove'
|
||||||
pkginst='sudo dpkg -i'
|
pkginst='sudo dpkg -i'
|
||||||
|
# Prereqs for this script
|
||||||
if ! which lsb_release &> /dev/null; then
|
if ! which lsb_release &> /dev/null; then
|
||||||
$install -y lsb-release
|
$install lsb-release
|
||||||
fi
|
fi
|
||||||
|
if ! which bc &> /dev/null; then
|
||||||
|
$install bc
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if which lsb_release &> /dev/null; then
|
if which lsb_release &> /dev/null; then
|
||||||
DIST=`lsb_release -is`
|
DIST=`lsb_release -is`
|
||||||
|
|||||||
Reference in New Issue
Block a user