Omit the ./ in the syntax metadata

This commit is contained in:
Markus Fleschutz
2021-04-07 15:17:49 +02:00
parent 381c3b850f
commit 154a753707
167 changed files with 205 additions and 279 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/pwsh
<#
.SYNTAX ./poweroff.ps1
.DESCRIPTION halts the local computer, administrator rights are required
.SYNTAX poweroff.ps1
.DESCRIPTION halts the local computer (needs admin rights)
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
#>
@ -9,7 +9,7 @@
#Requires -RunAsAdministrator
try {
stop-computer
Stop-Computer
exit 0
} catch {
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"