Skip to content

Commit

Permalink
Check if sox is available when running the filter_sounds script
Browse files Browse the repository at this point in the history
  • Loading branch information
sm0svx committed Mar 4, 2018
1 parent 6cbb5f1 commit 133aca9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/svxlink/scripts/filter_sounds.sh
Expand Up @@ -77,6 +77,12 @@ SRC_DIR=$1
DEST_DIR=$2
SILENCE_LEVEL=45

# Check for requird external utilities
if ! which sox &>/dev/null; then
echo "*** ERROR: The sox utility is not installed"
exit 1
fi

# Check if the filter_sounds.cfg config file exists and source it in if it does
if [ ! -r "${SRC_DIR}/filter_sounds.cfg" ]; then
echo "*** ERROR: Configuration file ${SRC_DIR}/filter_sounds.cfg is missing"
Expand Down

0 comments on commit 133aca9

Please sign in to comment.