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