mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-03-26 14:26:10 +01:00
Add play-bee-sound.ps1
This commit is contained in:
parent
30ee66b7c2
commit
7956943d82
19
Scripts/play-bee-sound.ps1
Normal file
19
Scripts/play-bee-sound.ps1
Normal file
@ -0,0 +1,19 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Plays a bee sound
|
||||
.DESCRIPTION
|
||||
This script plays a bee sound.
|
||||
.EXAMPLE
|
||||
PS> ./open-bee-sound
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
try {
|
||||
& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/Data/Sounds/bee.mp3"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||
}
|
Loading…
Reference in New Issue
Block a user