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 0def4c9b7314f6cec70a838fc6a249e7f7ac363f
parent 24c5edc65dfe2656817226072c158e78cca64851
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu, 17 Oct 2019 18:21:31 +0200

Set variable declarations as strings

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

diff --git a/.local/bin/rip-audio-cd.sh b/.local/bin/rip-audio-cd.sh @@ -30,9 +30,9 @@ cdio cdrip cdio eject for f in *.wav; do - track=$(echo "$f" | sed 's/track\([0-9]*\).wav/\1/') - i=$(echo "$track" | sed 's/^0//') - title=$(printf "%s" "$cddbinfo" | grep " $i " | sed 's/.*[0-9] //') + track="$(echo "$f" | sed 's/track\([0-9]*\).wav/\1/')" + i="$(echo "$track" | sed 's/^0//')" + title="$(printf "%s" "$cddbinfo" | grep " $i " | sed 's/.*[0-9] //')" fout="${track} ${artist} - ${title}.${format}" ffmpeg -i "$f" -vn -ar 44100 -ac 2 -ab 192k "$fout" id3tag --artist="$artist" --album="$album" --song="$title" --track="$track"\