init commit

This commit is contained in:
Josh Ashton
2023-09-11 21:39:18 -06:00
parent b5136b661b
commit bd5da60cf4
6 changed files with 50 additions and 10 deletions
Executable
+16
View File
@@ -0,0 +1,16 @@
#!/bin/zsh
TARGET=$1
if [[ -e $TARGET.mkv ]]; then
ffmpeg -i $TARGET.mkv -n $TARGET.mp3
rm $TARGET.mkv
elif [[ -e $TARGET.webm ]]; then
ffmpeg -i $TARGET.webm -n $TARGET.mp3
rm $TARGET.webm
elif [[ -e $TARGET.mp4 ]]; then
ffmpeg -i $TARGET.mp4 -n $TARGET.mp3
rm $TARGET.mp4
else
echo "file not found"
fi