diff --git a/receive.sh b/receive.sh index c6375df..752b518 100755 --- a/receive.sh +++ b/receive.sh @@ -50,7 +50,7 @@ if [ -n "$CONSUMER_KEY" ]; then fi fi -if [ "$DELETE_AUDIO" = true ]; +if [ "$DELETE_AUDIO" = true ]; then rm "${NOAA_AUDIO}/audio/${3}.wav" else # Move the audio from the ram fs to the SD Card diff --git a/receive_meteor.sh b/receive_meteor.sh index 73278a1..0b883e0 100755 --- a/receive_meteor.sh +++ b/receive_meteor.sh @@ -38,7 +38,7 @@ sox "${METEOR_OUTPUT}/audio/${3}.wav" "${METEOR_OUTPUT}/${3}.wav" gain -n log "Demodulation in progress (QPSK)" "INFO" meteor_demod -B -o "${METEOR_OUTPUT}/${3}.qpsk" "${METEOR_OUTPUT}/${3}.wav" -if [ "$DELETE_AUDIO" = true ]; +if [ "$DELETE_AUDIO" = true ]; then rm "${METEOR_OUTPUT}/audio/${3}.wav" rm "${METEOR_OUTPUT}/${3}.wav" fi