dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit e6bc84f26bc1345b99949a5fc469f63d25e00f93
parent 0acc20abf170b6f24a4299155ad45617bab85396
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Sat, 19 Oct 2019 14:17:41 +0200

Add metadata check before ripping

Diffstat:
M.local/bin/rip-audio-cd.sh | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/.local/bin/rip-audio-cd.sh b/.local/bin/rip-audio-cd.sh @@ -20,10 +20,20 @@ format="${1:-mp3}" outdir="/home/music/${artist}/${album}/" echo "format: $format" +printf "cddbinfo: %s\n" "$cddbinfo" echo "artist: $artist" echo "album: $album" echo "output dir: $outdir" +while :; do + printf "above info ok? [Y/n] " + read -r yn + case "$yn" in + [Nn]*) exit 1;; + *) break;; + esac +done + mkdir -p "$outdir" cd "$outdir" cdio cdrip