WIP: Loop version of check-incs using test -d #18
Loading…
Reference in a new issue
No description provided.
Delete branch "check-incs-loop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For #14.
@ -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
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!
Pull request closed