This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
isrunning=$(ps -ef | grep -v grep | grep "podcast.sh" | wc -l) | |
if [ "$isrunning" -gt "0" ]; then | |
echo "[ALREADY RUNNING]" | |
exit 0 | |
else | |
sudo /home/[your username]/podcast.sh | |
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Updates podcasts, downloads new episodes, then normalizes them. | |
if [ "$1" = "-h" ]; then | |
echo "Updates podcasts, downloads new episodes, then normalizes them." | |
echo "podcast.sh" | |
exit 0 | |
fi | |
SAVEIFS=$IFS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Normalizes the audio of the input to the output. | |
if [ "$1" = "-h" ]; then | |
echo "Normalizes the audio of the input into the output." | |
echo "normalize.sh [input] [output=normalized.ext]" | |
exit 0 | |
fi | |
normalize() { |