fix(IS_EVOBACKUP_EXCLUDE_MOUNT): correctly treat old versions of evobackup #154

Merged
dprevot merged 1 commit from mtrossevin/evocheck:fix-old-evobackup into master 2024-01-03 15:21:33 +01:00
Owner

Fix #150

Prior to this older versions of evobackup without VERSION= in them
would be treated as not having any exclude whatsoever as the else
block was only inside of the if grep -q "^VERSION=" "${evobackup_file}" block.

Now the treatment of old evobackup scripts is done if there isn't a
VERSION= in the script or if the version is older than 22.12.

This is why you shouldn't simply separate conditions of a single if in multiple ifs simply because the line is long.

Fix #150 Prior to this older versions of evobackup without `VERSION=` in them would be treated as not having any exclude whatsoever as the `else` block was only inside of the `if grep -q "^VERSION=" "${evobackup_file}"` block. Now the treatment of old evobackup scripts is done if there isn't a `VERSION=` in the script or if the version is older than 22.12. This is why you shouldn't simply separate conditions of a single `if` in multiple `if`s simply because the line is long.
dprevot force-pushed fix-old-evobackup from 06ef7c158c to fba4dc75c3 2024-01-03 15:13:27 +01:00 Compare
dprevot merged commit fba4dc75c3 into master 2024-01-03 15:21:33 +01:00
dprevot deleted branch fix-old-evobackup 2024-01-03 15:21:33 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: evolix/evocheck#154
No description provided.