diff options
Diffstat (limited to 'mp3ogg.sh')
-rwxr-xr-x | mp3ogg.sh | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -6,10 +6,7 @@ for file in *.mp3; do ffmpeg -i "$file" "$OUTPUT.ogg" done -printf "\n¿Borrar archivos originales? (s / n) " -read respuesta +printf "\nDelete original files? (y / n) " +read answer -case $respuesta in -s) - rm -f *.mp3 ;; -esac +[[ $answer == "y" ]] && rm -f *.mp3 |