Skip to content
Snippets Groups Projects
Commit d81fae64 authored by Demian Katz's avatar Demian Katz
Browse files

Skip creation of processed directory when it will not be used.

parent 94e3a3aa
No related merge requests found
...@@ -97,6 +97,7 @@ if "%LOGGING%"=="0" goto logfound ...@@ -97,6 +97,7 @@ if "%LOGGING%"=="0" goto logfound
md %BASEPATH%\log md %BASEPATH%\log
:logfound :logfound
if exist %BASEPATH%\processed goto processedfound if exist %BASEPATH%\processed goto processedfound
if "%MOVE_DATA%"=="0" goto processedfound
md %BASEPATH%\processed md %BASEPATH%\processed
:processedfound :processedfound
......
...@@ -84,9 +84,12 @@ then ...@@ -84,9 +84,12 @@ then
mkdir $BASEPATH/log mkdir $BASEPATH/log
fi fi
fi fi
if [ ! -d $BASEPATH/processed ] if [ $MOVE_DATA == true ]
then then
mkdir $BASEPATH/processed if [ ! -d $BASEPATH/processed ]
then
mkdir $BASEPATH/processed
fi
fi fi
# The log() function can be redefined to suit a variety of logging needs # The log() function can be redefined to suit a variety of logging needs
......
...@@ -97,6 +97,7 @@ if "%LOGGING%"=="0" goto logfound ...@@ -97,6 +97,7 @@ if "%LOGGING%"=="0" goto logfound
md %BASEPATH%\log md %BASEPATH%\log
:logfound :logfound
if exist %BASEPATH%\processed goto processedfound if exist %BASEPATH%\processed goto processedfound
if "%MOVE_DATA%"=="0" goto processedfound
md %BASEPATH%\processed md %BASEPATH%\processed
:processedfound :processedfound
......
...@@ -84,9 +84,12 @@ then ...@@ -84,9 +84,12 @@ then
mkdir $BASEPATH/log mkdir $BASEPATH/log
fi fi
fi fi
if [ ! -d $BASEPATH/processed ] if [ $MOVE_DATA == true ]
then then
mkdir $BASEPATH/processed if [ ! -d $BASEPATH/processed ]
then
mkdir $BASEPATH/processed
fi
fi fi
# The log() function can be redefined to suit a variety of logging needs # The log() function can be redefined to suit a variety of logging needs
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment