Check if file exists before removing it (#209)

This commit is contained in:
Mayte Ariza
2019-07-15 08:37:31 +02:00
committed by AlfonsoRBJ
parent 59f60f63b6
commit 0bf9766883
+1
View File
@@ -84,6 +84,7 @@ apply_exclusion_data() {
remove_data_files() { remove_data_files() {
for del_file in "${PERMANENT_DATA_DEL[@]}"; do for del_file in "${PERMANENT_DATA_DEL[@]}"; do
if [ -e ${del_file} ]
print "Removing ${del_file}" print "Removing ${del_file}"
exec_cmd "rm ${del_file}" exec_cmd "rm ${del_file}"
done done