From 2175699660458899597f3258914412d6a9f838a2 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Thu, 31 Dec 2020 17:39:41 +0000 Subject: [PATCH] Fix issue where added files whern't renamed --- inc/file-management | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/file-management b/inc/file-management index 7d73453..588aa2b 100644 --- a/inc/file-management +++ b/inc/file-management @@ -75,7 +75,7 @@ addFile(){ # If the yaml title and the filename title are different, then use the yaml title if [ "$yamlTitle" != "$filenameTitle" ]; then 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 copiedFile="$newFilename" fi