Skip to content

Commit 6b8c399

Browse files
lzacharskihacdias
authored andcommitted
fix: windows install script - get.ps1 (#15)
Added quotation marks for "$path" and retyped whole line due to possible non-printing characters involved (filebrowser/filebrowser#718).
1 parent a5a0a84 commit 6b8c399

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

get.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function Install-FileManager {
5454
if ((Get-Command "pandoc.exe" -ErrorAction SilentlyContinue) -eq $null) {
5555
$path = (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH).Path
5656
$path = $path + ";$folder"
57-
Set-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH Value $path
57+
Set-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH -Value "$path"
5858
}
5959

6060
Write-Host "filemanager successfully installed!" -ForegroundColor Green

0 commit comments

Comments
 (0)