Search
j0ke.net Open Build Service
>
Projects
>
multimedia
:
EL6
>
cuetools
> 0002-cuetag.sh-Fix-handling-of-files-with-spaces.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 0002-cuetag.sh-Fix-handling-of-files-with-spaces.patch of Package cuetools
From 3b4e408467caaebe71e5dc557587da4728901118 Mon Sep 17 00:00:00 2001 From: Todd Zullinger <tmz@pobox.com> Date: Fri, 8 May 2009 16:19:30 -0400 Subject: [PATCH 2/3] cuetag.sh: Fix handling of files with spaces --- src/tools/cuetag.sh | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tools/cuetag.sh b/src/tools/cuetag.sh index 809be82..4d8be69 100755 --- a/src/tools/cuetag.sh +++ b/src/tools/cuetag.sh @@ -80,7 +80,7 @@ vorbis() (for field in $fields; do value="" for conv in $(eval echo \$$field); do - value=$($CUEPRINT -n $1 -t "$conv\n" $cue_file) + value=$($CUEPRINT -n $1 -t "$conv\n" "$cue_file") if [ -n "$value" ]; then echo "$field=$value" @@ -113,7 +113,7 @@ id3() for field in $fields; do value="" for conv in $(eval echo \$$field); do - value=$($CUEPRINT -n $1 -t "$conv\n" $cue_file) + value=$($CUEPRINT -n $1 -t "$conv\n" "$cue_file") if [ -n "$value" ]; then break @@ -158,14 +158,14 @@ main() cue_file=$1 shift - ntrack=$(cueprint -d '%N' $cue_file) + ntrack=$(cueprint -d '%N' "$cue_file") trackno=1 if [ $# -ne $ntrack ]; then echo "warning: number of files does not match number of tracks" fi - for file in $@; do + for file in "$@"; do case $file in *.[Ff][Ll][Aa][Cc]) vorbis $trackno "$file" -- 1.6.3