WIP: Loop version of check-incs using test -d #18

Closed
benpro wants to merge 1 commits from check-incs-loop into check-incs
Contributor

For #14.

For #14.
benpro reviewed 2019-04-04 16:02:46 +02:00
@ -34,11 +35,13 @@ for file in ${EVOBACKUP_CONFIGS}; do
inc_age=$(date --date "${inc_date}" +%s)
# check if the configuration changed after the inc date
if [ $jail_config_age -lt $inc_age ]; then
for inc in ${jail_name}/${inc_date}*; do
Author
Contributor

One issue though: If there is no folder/incs, the loop is silently skipped (nullglob).
Maybe add a test before and says : Error: No incs at all for this jail!

One issue though: If there is no folder/incs, the loop is silently skipped (nullglob). Maybe add a test before and says : Error: No incs at all for this jail!
jlecour closed this pull request 2020-04-02 18:57:17 +02:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
1 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/evobackup#18
No description provided.