Switched to using sing instead of beep, and added a different tune for a non-zero exit code

This commit is contained in:
David Thurstenson 2020-05-30 09:01:57 -05:00
parent c43932cac3
commit 5a1379dea4
1 changed files with 25 additions and 10 deletions

View File

@ -1,12 +1,27 @@
triumph() { triumph() {
echo -n "This " if [ $? -eq 0 ]; then
beep -f 784 -l 200 echo -n "This "
echo -n "was " sing G5 200
beep -f 740 -l 200 echo -n "was "
echo -n "a " sing Fs5 200
beep -f 659 -l 200 echo -n "a "
echo -n "tri" sing E5 200
beep -f 659 -l 200 echo -n "tri"
echo "umph." sing E5 200
beep -f 740 -l 200 echo "umph."
sing Fs5 200
else
echo "You've got sucker's luck"
sing \
G5 800 -n \
E5 175 -n \
B5 400 -n \
E5 175 -n \
A5 400 -n \
G5 250 -n \
E5 275 -n \
D5 500 -n \
E5 300
fi
} }