Ask if you want to remove the files.
This commit is contained in:
parent
8cadc75e83
commit
426ee567bc
@ -39,3 +39,22 @@ do
|
|||||||
ffmpeg -loglevel warning -i $f $OUTFILE.oga
|
ffmpeg -loglevel warning -i $f $OUTFILE.oga
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
while true
|
||||||
|
do
|
||||||
|
read -p "Do you wish to delete the old files? (y/n) " ANSWER
|
||||||
|
case $ANSWER in
|
||||||
|
[yY]* ) echo "Deleting the old files..."
|
||||||
|
for f in $@
|
||||||
|
do
|
||||||
|
rm $f
|
||||||
|
done
|
||||||
|
echo "Done."
|
||||||
|
break;;
|
||||||
|
|
||||||
|
[nN]* ) echo "Goodbye!"
|
||||||
|
break;;
|
||||||
|
|
||||||
|
* ) echo "Please enter a valid option."
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user