canhanhan / wsl-virtualbox

VBoxManage wrapper to use Virtualbox from WSL for Packer
MIT License
16 stars 8 forks source link

medium issue #1

Open webhead404 opened 2 years ago

webhead404 commented 2 years ago

This works really well! On the last step however it fails because it tries to work on the path for a medium dismounting. The argument is --medium none and when the script sees that it fails. Do you know how to easily fix this? Some way to ignore the sed part when the argument matches? Thanks for all your work on this, I would submit a PR but I don't know where to start really.

Thanks!

nguyentrungduc134 commented 2 years ago

Thanks for pointing it out. I managed to pass over it by adding an if clause if [ "$argument" != 'none' ]; then argument=$(wslpath -w "$argument") fi