Skip to content

Commit f905a90

Browse files
committed
FDS Validation: Remove files from Current_Results
1 parent e1765e6 commit f905a90

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Validation/Common_Run_All.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,11 @@ if [ ! $STOPFDS ] ; then
176176
# Check for files in $INDIR (Current_Results) directory
177177
if [[ "$(ls -A $INDIR)" && ! $OVERWRITE ]]; then
178178
echo "Directory $INDIR already exists with files."
179-
echo "Use the -y option to overwrite files."
179+
echo "Use the -y option to REMOVE existing files."
180180
echo "Exiting."
181181
exit
182182
elif [[ "$(ls -A $INDIR)" && $OVERWRITE ]]; then
183-
# Continue along
184-
:
183+
rm $INDIR/*
185184
fi
186185
# Create $INDIR (Current_Results) directory if it doesn't exist
187186
else

0 commit comments

Comments
 (0)