lib/vagrant-windows/scripts/mount_volume.ps1.erb in vagrant-windows-0.1.0 vs lib/vagrant-windows/scripts/mount_volume.ps1.erb in vagrant-windows-0.1.1

- old
+ new

@@ -9,16 +9,16 @@ $ShareName = "<%= options[:name] %>" # https://github.com/BIAINC/vagrant-windows/issues/4 # Not sure why this works, but it does. -& net use $ShareName +& net use $ShareName 2>&1 | Out-Null -Write-Host "Attempting to mount $ShareName to $MountPoint" +Write-Debug "Attempting to mount $ShareName to $MountPoint" if( (Test-Path "$MountPoint") -and (Test-ReparsePoint "$MountPoint") ) { - Write-Host "Junction already exists, so I will delete it" + Write-Debug "Junction already exists, so I will delete it" # Powershell refuses to delete junctions, oh well use cmd cmd /c rd "$MountPoint" if ( $LASTEXITCODE -ne 0 ) { @@ -27,22 +27,22 @@ } } elseif(Test-Path $MountPoint) { - Write-Host "Mount point already exists and is not a symbolic link" + Write-Debug "Mount point already exists and is not a symbolic link" exit 1 } $BaseDirectory = [System.IO.Path]::GetDirectoryName($MountPoint) if (-not (Test-Path $BaseDirectory)) { - Write-Host "Creating parent directory for mount point $BaseDirectory" + Write-Debug "Creating parent directory for mount point $BaseDirectory" New-Item $BaseDirectory -Type Directory -Force | Out-Null } -cmd /c mklink /D "$MountPoint" "\\vboxsrv\$ShareName" +cmd /c mklink /D "$MountPoint" "\\vboxsrv\$ShareName" | out-null if ( $LASTEXITCODE -ne 0 ) { exit 1 } \ No newline at end of file