1
0
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:
Jaap Brasser
2019-11-13 23:02:15 +01:00
parent 33d9c3771c
commit 8c172dbb59
@@ -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
}
}
}
}