Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0d4812b

Browse files
committedMay 25, 2017
Check to see if the file already exists
1 parent 6f91bc9 commit 0d4812b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎tomp3

+5
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ convert_audio() {
2828
ext="${from##*.}"
2929
to="${from[*]/%${ext}/mp3}"
3030

31+
if [[ -e "${to}" ]]; then
32+
echo "File already exists: ${to}"
33+
return 1
34+
fi
35+
3136
ffmpeg \
3237
-i "${from}" \
3338
-loglevel quiet \

0 commit comments

Comments
 (0)
Please sign in to comment.