Fix issue where added files whern't renamed
This commit is contained in:
parent
7a032b7cdb
commit
2175699660
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ addFile(){
|
||||||
# If the yaml title and the filename title are different, then use the yaml title
|
# If the yaml title and the filename title are different, then use the yaml title
|
||||||
if [ "$yamlTitle" != "$filenameTitle" ]; then
|
if [ "$yamlTitle" != "$filenameTitle" ]; then
|
||||||
local newFilename=$(escapeFilename "$yamlTitle").$ext
|
local newFilename=$(escapeFilename "$yamlTitle").$ext
|
||||||
echo mv "$dataDir$subFolder$copiedFile" "$dataDir$subFolder$newFilename"
|
mv "$dataDir$subFolder$copiedFile" "$dataDir$subFolder$newFilename"
|
||||||
warn "File renamed from $copiedFile to "$newFilename
|
warn "File renamed from $copiedFile to "$newFilename
|
||||||
copiedFile="$newFilename"
|
copiedFile="$newFilename"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue