chek deps

This commit is contained in:
Alarig Le Lay 2019-01-21 11:08:57 +01:00
parent 4c7d508635
commit 7701a5ffb5

View file

@ -17,7 +17,17 @@ else
printf 'Cant source "creds": file not found\n'
fi
exit 0
# check for commands in the path
for bin in curl ipv6calc ip; do
if [ -z $(which ${bin} 2>/dev/null) ]; then
MISSING="${MISSING} ${bin}"
fi
done
if [ ! -z "${MISSING}" ]; then
printf "Your missing this:${MISSING}\n"
exit 1
fi
# ID subnets IPAM V4 et V6 contenants les VMs
ID_RANGES_V4=( "74" "181" )