Browse Source

chek deps

master
Alarig Le Lay 4 years ago
parent
commit
7701a5ffb5
  1. 12
      creationRoutesVM.sh

12
creationRoutesVM.sh

@ -17,7 +17,17 @@ else
printf 'Can’t 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 "You’r missing this:${MISSING}\n"
exit 1
fi
# ID subnets IPAM V4 et V6 contenants les VMs
ID_RANGES_V4=( "74" "181" )

Loading…
Cancel
Save