소스 검색

cuetag: Fix handling of spaces in file names

Fixes #14
master
Svend Sorensen 10 년 전
부모
커밋
21ee6cc40f
1개의 변경된 파일4개의 추가작업 그리고 5개의 파일을 삭제
  1. +4
    -5
      src/tools/cuetag.sh

+ 4
- 5
src/tools/cuetag.sh 파일 보기

@@ -182,16 +182,15 @@ main()
ntrack=$(cueprint -d '%N' "$cue_file")
trackno=1

FILES= FIELDS=
NUM_FILES=0 FIELDS=
for arg in "$@"; do
case "$arg" in
*.*) FILES="$FILES $arg";;
*.*) NUM_FILES=$(expr $NUM_FILES + 1);;
*) FIELDS="$FIELDS $arg";;
esac
done

set -- $FILES
if [ $# -ne $ntrack ]; then
if [ $NUM_FILES -ne $ntrack ]; then
echo "warning: number of files does not match number of tracks"
fi

@@ -209,7 +208,7 @@ main()
*.[Tt][Xx][Tt])
vorbis $trackno "$file"
;;
*)
*.*)
echo "$file: uknown file type"
;;
esac


불러오는 중...
취소
저장