Remove the need for bc

This commit is contained in:
Arif Ali 2020-12-30 13:28:37 +00:00
parent f741007501
commit c83756a3e9
Signed by: arif
GPG Key ID: 369608FBA1353A70
2 changed files with 2 additions and 3 deletions

View File

@ -7,7 +7,7 @@ state_timeout=1200
install_deps()
{
# Install some of the dependent packages
deps="jq bc"
deps="jq"
if [[ "$0" == "*manage-maas-*" ]] ; then
deps+=" virtinst"
fi
@ -80,7 +80,7 @@ ensure_machine_in_state()
# We will continue to check the state of the machine to see if it is in
# $state or the timeout has occured, which defaults to 20 mins
while [[ ${status_name} != "${state}" ]] && [[ $( echo ${time_end} - ${time_start} | bc ) -le ${timeout} ]]
while [[ ${status_name} != "${state}" ]] && [[ $(( ${time_end} - ${time_start} )) -le ${timeout} ]]
do
# Check every 20 seconds of the state
sleep 20

View File

@ -24,7 +24,6 @@ users:
## Install additional packages on first boot
packages:
- virtinst
- bc
- jq
- ksmtuned