forked from wazuh/wazuh-docker
Check if file exists before removing it (#209)
This commit is contained in:
@@ -84,8 +84,9 @@ apply_exclusion_data() {
|
||||
|
||||
remove_data_files() {
|
||||
for del_file in "${PERMANENT_DATA_DEL[@]}"; do
|
||||
print "Removing ${del_file}"
|
||||
exec_cmd "rm ${del_file}"
|
||||
if [ -e ${del_file} ]
|
||||
print "Removing ${del_file}"
|
||||
exec_cmd "rm ${del_file}"
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user