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
+3 -2
View File
@@ -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
}