You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -89,22 +89,22 @@ function Invoke-MicrowinGetIso {
89
89
Set-Location"$originalLocation"
90
90
# Use the FullName property to only grab the file names. Using this property is necessary as, without it, you're passing the usual output of Get-ChildItem
91
91
# to the variable, and let's be honest, that does NOT exist in the file system
Copy file name to clipboardExpand all lines: functions/microwin/Microwin-CopyVirtIO.ps1
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -6,25 +6,27 @@ function Microwin-CopyVirtIO {
6
6
A network connection must be available and the servers of Fedora People must be up. Automatic driver installation will not be added yet - I want this implementation to be reliable.
7
7
#>
8
8
9
+
$tempDir= [IO.Path]::GetTempPath().TrimEnd("\")
10
+
9
11
try {
10
12
Write-Host"Checking existing files..."
11
-
if (Test-Path-Path "$($env:TEMP)\virtio.iso"-PathType Leaf) {
13
+
if (Test-Path-Path "$($tempDir)\virtio.iso"-PathType Leaf) {
12
14
Write-Host"VirtIO ISO has been detected. Deleting..."
13
-
Remove-Item-Path "$($env:TEMP)\virtio.iso"-Force
15
+
Remove-Item-Path "$($tempDir)\virtio.iso"-Force
14
16
}
15
17
Write-Host"Getting latest VirtIO drivers. Please wait. This can take some time, depending on your network connection speed and the speed of the servers..."
0 commit comments