mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 21:07:40 +02:00
Improved both scripts
This commit is contained in:
@ -12,7 +12,7 @@ try {
|
||||
|
||||
copy-item "$PathToRepo/Scripts/my-profile.ps1" "$PathToProfile" -force
|
||||
|
||||
write-host -foregroundColor green "OK - updated profile $PathToProfile"
|
||||
write-host -foregroundColor green "OK - updated profile 'CurrentUserCurrentHost' (gets active on next login)"
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
Reference in New Issue
Block a user