1
Fork 0
mirror of https://github.com/RGBCube/vmware-to-proxmox-migration-script synced 2025-07-25 15:37:46 +00:00

added checks for jq and ovftool

This commit is contained in:
tcude 2024-01-17 20:20:23 -06:00
parent e1cc7de1c1
commit 5122935caa

View file

@ -5,6 +5,18 @@ get_input() {
echo $input
}
# Check if ovftool is installed
if ! ovftool --version &> /dev/null; then
echo "Error: ovftool is not installed or not found in PATH. Please install ovftool and try again."
exit 1
fi
# Check if jq is installed
if ! jq --version &> /dev/null; then
echo "Error: jq is not installed or not found in PATH. Please install jq and try again."
exit 1
fi
# User inputs
echo "Enter the details for VM migration"
ESXI_SERVER=$(get_input "Enter the ESXi server hostname/IP")