Skip to content

Commit

Permalink
Merge pull request #1050 from Ana06/powershell_shortcut
Browse files Browse the repository at this point in the history
[common] Print directory in Powershell shortcuts
  • Loading branch information
Ana06 authored May 21, 2024
2 parents dd58216 + c1eeae2 commit be78550
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/common.vm/common.vm.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>common.vm</id>
<version>0.0.0.20240514</version>
<version>0.0.0.20240516</version>
<description>Common libraries for VM-packages</description>
<authors>Mandiant</authors>
</metadata>
Expand Down
2 changes: 1 addition & 1 deletion packages/common.vm/tools/vm.common/vm.common.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ function VM-Install-Shortcut{
$executableArgs = "/K `"cd `"$executableDir`" && echo $executableDir^> $executablePath $arguments && `"$executablePath`" $arguments`""
} else {
$executableCmd = Join-Path "${PSHome}" "powershell.exe" -Resolve
$executableArgs = "-ExecutionPolicy Bypass -NoExit -Command `"`$cmd = '$arguments'; Write-Host `$cmd; Invoke-Expression `$cmd`""
$executableArgs = "-ExecutionPolicy Bypass -NoExit -Command `"`$cmd = '$arguments'; Write-Host PS $executableDir ``> `$cmd; Invoke-Expression `$cmd`""
$iconLocation = $executableCmd
}

Expand Down

0 comments on commit be78550

Please sign in to comment.