You've already forked SharedScripts
mirror of
https://github.com/jaapbrasser/SharedScripts.git
synced 2026-06-14 00:14:16 +02:00
Updated with Set-Clipboard detection
This commit is contained in:
@@ -77,7 +77,11 @@ Will run against the jaapbrasser account, sharedscripts repository and will look
|
||||
if ($NoClipBoard) {
|
||||
$BuildMarkDown.Invoke()
|
||||
} else {
|
||||
$BuildMarkDown.Invoke() | clip.exe
|
||||
if (Get-Command -Name Set-Clipboard -ErrorAction SilentlyContinue) {
|
||||
$BuildMarkDown.Invoke() | Set-Clipboard
|
||||
} else {
|
||||
$BuildMarkDown.Invoke() | clip
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user