From e97f4dd3e3f3f7f4f7b51e1bc5b9ebe1bdb8eecb Mon Sep 17 00:00:00 2001 From: mono-b Date: Mon, 19 Dec 2022 20:05:59 -0300 Subject: fixes --- mp3ogg.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'mp3ogg.sh') diff --git a/mp3ogg.sh b/mp3ogg.sh index 704d754..3170747 100755 --- a/mp3ogg.sh +++ b/mp3ogg.sh @@ -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 -- cgit v1.2.1