Fix issue where added files whern't renamed

master
Jonathan Hodgson 3 years ago
parent 7a032b7cdb
commit 2175699660
  1. 2
      inc/file-management

@ -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…
Cancel
Save