|
|
@ -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 |
|
|
|