Update setup.ps1
This commit is contained in:
parent
1c506da532
commit
4549a1deac
1 changed files with 3 additions and 3 deletions
6
docs/static/setup.ps1
vendored
6
docs/static/setup.ps1
vendored
|
@ -59,11 +59,11 @@ catch [System.Management.Automation.CommandNotFoundException] {
|
||||||
Test-Git-Config -Option "user.name" -ErrMsg "Git username not set!`nRun: git config --global user.name 'My Name'"
|
Test-Git-Config -Option "user.name" -ErrMsg "Git username not set!`nRun: git config --global user.name 'My Name'"
|
||||||
Test-Git-Config -Option "user.email" -ErrMsg "Git email not set!`nRun: git config --global user.email 'example@myemail.com'"
|
Test-Git-Config -Option "user.email" -ErrMsg "Git email not set!`nRun: git config --global user.email 'example@myemail.com'"
|
||||||
|
|
||||||
$permission = (Get-Acl $pwd).Access |
|
$permission = (Get-Acl $pwd).Access |
|
||||||
?{$_.IdentityReference -match $env:UserName `
|
?{$_.IdentityReference -match $env:UserName `
|
||||||
-and $_.FileSystemRights -match "FullControl" `
|
-and $_.FileSystemRights -match "FullControl" `
|
||||||
-or $_.FileSystemRights -match "Write" } |
|
-or $_.FileSystemRights -match "Write" } |
|
||||||
|
|
||||||
Select IdentityReference,FileSystemRights
|
Select IdentityReference,FileSystemRights
|
||||||
|
|
||||||
If (-Not $permission){
|
If (-Not $permission){
|
||||||
|
|
Loading…
Add table
Reference in a new issue