Stop deletion of patch file if it doesn't exist

This commit is contained in:
icenine451 2023-05-18 09:10:50 -04:00
parent 23720b81ba
commit 792bff030b

View file

@ -267,7 +267,9 @@ generate_single_patch() {
local patch_file="$3"
local system="$4"
rm "$patch_file" # Remove old patch file (maybe change this to create a backup instead?)
if [[ -f "$patch_file" ]]; then
rm "$patch_file" # Remove old patch file (maybe change this to create a backup instead?)
fi
while read -r current_setting_line; # Look for changes from the original file to the modified one
do