From 20486f19453a3ece785ff1e535cfd58c10e5c882 Mon Sep 17 00:00:00 2001
From: Jan Lemmer <jan.lemmer@fst.tu-darmstadt.de>
Date: Thu, 7 Oct 2021 15:10:48 +0200
Subject: [PATCH] Fixes #26

---
 +PlotID/Publish.m | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/+PlotID/Publish.m b/+PlotID/Publish.m
index 6366dc8..678cc15 100644
--- a/+PlotID/Publish.m
+++ b/+PlotID/Publish.m
@@ -60,14 +60,12 @@ end
 folderName = char(ID);
 
 %% Create Data-Directory
-addpath(storPath); % ToDo necessary? - 
 if isfolder(fullfile(storPath,folderName))
    error(['Folder ',folderName, ' exists - Plot was already published ']);
 elseif mkdir(fullfile(storPath,folderName))
 else
     error('Directory could not be created - check remote path and permissions');
 end
-
 disp('Publishing started');
 
 %% Create a Copy of the script, config and user functions(optional)
@@ -90,7 +88,6 @@ if ~configError %config File must exist
    fclose(fid);
 end
 
-
 % user functions
 if options.CopyUserFCN 
    fList = fList(~ismember(fList,[DataPaths.script,'.m'])); % rmv script from list
-- 
GitLab