Skip to content
Snippets Groups Projects
Commit b497d2c0 authored by Daniel Nemergut's avatar Daniel Nemergut
Browse files

Put rawdata dir check in quotes to make it safe against spaces

parent 4b467cf7
No related branches found
No related tags found
1 merge request!1617WS-2227 Reusing rawdata directory
......@@ -11,7 +11,7 @@ cd {{spool_dir}}
$SBIN_PATH/framework.sh -d .
chmod 770 .
if [ ! -z "$PREV_SPOOL" ] && [ -d ../$PREV_SPOOL/rawdata/ ] && [ ! -z "$(ls -A ../$PREV_SPOOL/rawdata/)" ]; then
if [ ! -z "$PREV_SPOOL" ] && [ -d "../$PREV_SPOOL/rawdata/" ] && [ ! -z "$(ls -A ../$PREV_SPOOL/rawdata/)" ]; then
# Reuse the raw data from the previous version
mv ../$PREV_SPOOL/rawdata/ .
else
......
......@@ -11,7 +11,7 @@ cd {{spool_dir}}
$SBIN_PATH/framework.sh -d .
chmod 770 .
if [ ! -z "$PREV_SPOOL" ] && [ -d ../$PREV_SPOOL/rawdata/ ] && [ ! -z "$(ls -A ../$PREV_SPOOL/rawdata/)" ]; then
if [ ! -z "$PREV_SPOOL" ] && [ -d "../$PREV_SPOOL/rawdata/" ] && [ ! -z "$(ls -A ../$PREV_SPOOL/rawdata/)" ]; then
# Reuse the raw data from the previous version
mv ../$PREV_SPOOL/rawdata/ .
else
......
......@@ -11,7 +11,7 @@ cd {{spool_dir}}
$SBIN_PATH/framework.sh -d .
chmod 770 .
if [ ! -z "$PREV_SPOOL" ] && [ -d ../$PREV_SPOOL/rawdata/ ] && [ ! -z "$(ls -A ../$PREV_SPOOL/rawdata/)" ]; then
if [ ! -z "$PREV_SPOOL" ] && [ -d "../$PREV_SPOOL/rawdata/" ] && [ ! -z "$(ls -A ../$PREV_SPOOL/rawdata/)" ]; then
# Reuse the raw data from the previous version
mv ../$PREV_SPOOL/rawdata/ .
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment