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:
parent
e1cc7de1c1
commit
5122935caa
1 changed files with 12 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue