ArloL/iebox — pull request #1 by ollierattue (2012-10-17 16:07:04+00:00)
Title: Bug fix - mv: rename No such file or directory

The directory ${vbox_machinefolder}/${vm_name} does not exist and so the mv command fails, terminating the script:

Downloading VHD from http://download.microsoft.com/download/B/7/2/B72085AE-0F04-4C6F-9182-BF1EE90F5273/Windows_XP_IE6.exe to /Users/osxuser/.iebox/
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 401M 100 401M 0 0 169k 0 0:40:27 0:40:27 --:--:-- 168k
Extracting VHD from /Users/osxuser/.iebox/vhd/IE6/Windows_XP_IE6.exe
Extracting cabinet: Windows_XP_IE6.exe
extracting Windows XP.vmc
extracting Windows XP.vhd
extracting IE_VPC_ReadMe.txt

All done, no errors.
Checking for existing VM called Windows XP IE6
Creating Windows XP IE6 VM
Virtual machine 'Windows XP IE6' is created and registered.
UUID: 7d7d3948-0172-493b-a4b1-2d080fbf981d
Settings file: '/Users/osxuser/VirtualBox VMs/Windows XP IE6/Windows XP IE6.vbox'
Moving /Users/osxuser/.iebox/vhd/IE6/Windows XP.vhd to /Users/osxuser/VirtualBox/Windows XP IE6/Windows XP.vhd
mv: rename /Users/osxuser/.iebox/vhd/IE6/Windows XP.vhd to /Users/osxuser/VirtualBox/Windows XP IE6/Windows XP.vhd: No such file or directory