File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,8 @@ function deleteConnections {
92
92
removeFirstLineFromFile $CONNECTION_CLEANUP_FILE
93
93
done
94
94
95
- if ! test -s $CONNECTION_CLEANUP_FILE
95
+ # if file exists and is empty
96
+ if test -e $CONNECTION_CLEANUP_FILE && ! test -s $CONNECTION_CLEANUP_FILE
96
97
then
97
98
rm $CONNECTION_CLEANUP_FILE
98
99
echo " removed cleanup file $CONNECTION_CLEANUP_FILE "
@@ -110,7 +111,8 @@ function deleteSources {
110
111
removeFirstLineFromFile $SOURCE_CLEANUP_FILE
111
112
done
112
113
113
- if ! test -s $SOURCE_CLEANUP_FILE
114
+ # if file exists and is empty
115
+ if test -e $SOURCE_CLEANUP_FILE && ! test -s $SOURCE_CLEANUP_FILE
114
116
then
115
117
rm $SOURCE_CLEANUP_FILE
116
118
echo " removed cleanup file $SOURCE_CLEANUP_FILE "
@@ -128,7 +130,8 @@ function deleteDestinations {
128
130
removeFirstLineFromFile $DESTINATION_CLEANUP_FILE
129
131
done
130
132
131
- if test -z $DESTINATION_CLEANUP_FILE
133
+ # if file exists and is empty
134
+ if test -e $DESTINATION_CLEANUP_FILE && ! test -s $DESTINATION_CLEANUP_FILE
132
135
then
133
136
rm $DESTINATION_CLEANUP_FILE
134
137
echo " removed cleanup file $DESTINATION_CLEANUP_FILE "
You can’t perform that action at this time.
0 commit comments