Skip to content

Commit

Permalink
mkova.sh: bail if vmdk-convert is not in PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverkurth committed Jun 10, 2024
1 parent a33bbe9 commit 7779cc3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ova/mkova.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ fi
vmdks=$@
vmdks_num=$#

if ! which vmdk-convert > /dev/null ; then
echo "vmdk-convert not found in PATH."
echo "Terminating." >&2
exit 1
fi

echo "Starting to create ${name}.ova with ${vmdks_num} disk(s) with template ${ovftempl}"
echo "Number of CPUs: ${NUM_CPUS}"
echo "Memory in MB: ${MEM_SIZE}"
Expand Down

0 comments on commit 7779cc3

Please sign in to comment.