Merge branch '28-store-dest-filename-relative' into 'dev'
Resolve "Store dest filename relative" See merge request atom/AtOM!38
This commit is contained in:
commit
c6deac7e02
@ -1,13 +1,15 @@
|
||||
#!/bin/bash
|
||||
copyFiles_matching() {
|
||||
extension="${filename##*.}"
|
||||
local extension="${filename##*.}"
|
||||
if \
|
||||
cp -al \
|
||||
"$sourcepath/$filename" \
|
||||
"$destdir/$destfile.$extension" \
|
||||
"${destinationpath[$destination]}/$destdir/$destfile.$extension" \
|
||||
2>/dev/null \
|
||||
|| cp -a \
|
||||
"$sourcepath/$filename" \
|
||||
"$destdir/$destfile.$extension"
|
||||
"${destinationpath[$destination]}/$destdir/$destfile.$extension"
|
||||
then
|
||||
echo \
|
||||
"UPDATE destination_files" \
|
||||
"SET filename=" \
|
||||
@ -30,4 +32,5 @@ copyFiles_matching() {
|
||||
"WHERE id=$destfileid;" \
|
||||
>&3
|
||||
(( ++copies ))
|
||||
fi
|
||||
}
|
||||
|
||||
@ -98,7 +98,7 @@ getDestDir() {
|
||||
part=${part#*/}
|
||||
done
|
||||
fi
|
||||
if ! [ -d "$destdir" ]
|
||||
if ! [ -d "${destinationpath[$destination]}/$destdir" ]
|
||||
then
|
||||
mkdir -p "${destinationpath[$destination]}/$destdir"
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user