Bug: on master, if UPDATE_COUNT is 0 but UP_THRESHOLD is set to 0, the if statement never triggers, leading to the snapraid commands not continuing.
Bugfix on chk_updated function to allow if statement [ "$UPDATE_COUNT" -eq 0 ] to trigger even if UPDATE_COUNT is not less than UP_THRESHOLD var. This allows the script to continue if there are 0 updates, even if UP_THRESHOLD is set to 0.
This is the same logic already in chk_del lines 454-456. :)
Bug: on master, if UPDATE_COUNT is 0 but UP_THRESHOLD is set to 0, the if statement never triggers, leading to the snapraid commands not continuing.
Bugfix on chk_updated function to allow if statement [ "$UPDATE_COUNT" -eq 0 ] to trigger even if UPDATE_COUNT is not less than UP_THRESHOLD var. This allows the script to continue if there are 0 updates, even if UP_THRESHOLD is set to 0. This is the same logic already in chk_del lines 454-456. :)