Fixed double spaces
This commit is contained in:
parent
c6be37116d
commit
fa23c4d992
@ -274,7 +274,7 @@ CreateFileList() {
|
||||
sourcepath="${sourcepath/\]/\\\]}"
|
||||
for file in $sourcepath; do
|
||||
origfile="${file#"$1/"}"
|
||||
relfile=$(echo ${origfile} | sed -e 's/\(\.\)*$//g')
|
||||
relfile=$(echo ${origfile} | sed -e 's/\(\.\)*$//g' | tr -s ' ')
|
||||
mp3file=$(echo "${relfile}" | sed -e 's/.flac/.mp3/')
|
||||
VerboseOutput 0 "Checking ${origfile}"
|
||||
if [[ -d "${1}/$origfile" ]]; then
|
||||
@ -402,7 +402,7 @@ CopyFile() {
|
||||
exit 3
|
||||
fi
|
||||
|
||||
destline=$(echo $mp3line | sed -e 's/\.*\//\//g')
|
||||
destline=$(echo $mp3line | sed -e 's/\.*\//\//g'| tr -s ' ')
|
||||
VerboseOutput 1 "Copying: $line"
|
||||
|
||||
if [[ "$dest/$line" = */* ]]; then
|
||||
@ -410,7 +410,7 @@ CopyFile() {
|
||||
mkdir -p "$dest/${destline%/*}";
|
||||
fi;
|
||||
|
||||
cp -f "$temp/$mp3line" "$dest/${destline}" 1>/dev/null 2>/dev/null
|
||||
cp -fv "$temp/$mp3line" "$dest/${destline}" 1>/dev/null 2>/dev/null
|
||||
|
||||
VerboseOutput 1 "Copied: $line"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user