Thanks to visit codestin.com
Credit goes to github.com

Skip to content

tools: fix install-powershell for running during window setup#5727

Merged
TravisEz13 merged 3 commits intoPowerShell:masterfrom
TravisEz13:update_install_pwsh
Jan 2, 2018
Merged

tools: fix install-powershell for running during window setup#5727
TravisEz13 merged 3 commits intoPowerShell:masterfrom
TravisEz13:update_install_pwsh

Conversation

@TravisEz13
Copy link
Member

@TravisEz13 TravisEz13 commented Dec 20, 2017

PR Summary

  1. Set the system path instead of the user path so that all users can use the installation
  2. If the required destination folder doesn't exist, create it

PR Checklist

Note: Please mark anything not applicable to this PR NA.

Copy-Item $_.fullname -Destination $DestinationFilePath
}
} else {
$null = New-Item -Path (Split-Path -Path $Destination -Parent -ErrorAction SilentlyContinue) -ItemType Directory -ErrorAction SilentlyContinue
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The -ErrorAction SilentlyContinue part for Split-Path seems unncessary.

@TravisEz13 TravisEz13 merged commit 359a3f0 into PowerShell:master Jan 2, 2018
@TravisEz13 TravisEz13 deleted the update_install_pwsh branch January 2, 2018 19:13
@TravisEz13 TravisEz13 restored the update_install_pwsh branch January 2, 2018 19:13
@TravisEz13 TravisEz13 deleted the update_install_pwsh branch January 12, 2018 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants