This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
shopt -s nullglob # When expanding wildcards into files, return null when no matches are found | |
set -e # Abort script on any error | |
src="Windows 10 x64" # Default source VM | |
pushd "$HOME/Documents/Virtual Machines.localized" # Avoid full path usage everywhere | |
if [ $# -eq 0 ]; then | |
echo "Usage: $(basename $0) newvm" | |
echo "$src is used for the source vm" | |
exit |