From e97f4dd3e3f3f7f4f7b51e1bc5b9ebe1bdb8eecb Mon Sep 17 00:00:00 2001 From: mono-b Date: Mon, 19 Dec 2022 20:05:59 -0300 Subject: fixes --- oggmp3.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'oggmp3.sh') diff --git a/oggmp3.sh b/oggmp3.sh index b4e8bfa..6d34b59 100755 --- a/oggmp3.sh +++ b/oggmp3.sh @@ -6,10 +6,6 @@ for file in *.ogg; do ffmpeg -i "$file" "$OUTPUT.mp3" done -printf "\n¿Borrar archivos originales? (s / n) " -read respuesta -if [ $respuesta = "s" ] ; then - rm -f *.ogg -else - echo > /dev/null -fi +printf "\nDelete original files? (y / n) " +read answer +[[ $answer == "y" ]] && rm -f *.ogg || echo > /dev/null -- cgit v1.2.1