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() {
echo -n "This "
beep -f 784 -l 200
echo -n "was "
beep -f 740 -l 200
echo -n "a "
beep -f 659 -l 200
echo -n "tri"
beep -f 659 -l 200
echo "umph."
beep -f 740 -l 200
if [ $? -eq 0 ]; then
echo -n "This "
sing G5 200
echo -n "was "
sing Fs5 200
echo -n "a "
sing E5 200
echo -n "tri"
sing E5 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
}