Skip to content

Commit 81d2444

Browse files
author
Oliver Cervera
authored
Fix touch not running on SnapRAID 12.3
SnapRAID 12.3 has changed the string of the diff ouput, causing the script not to catch it. Now it works in both cases. #92
1 parent 72230d6 commit 81d2444

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snapraid-aio-script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ function chk_sync_warn(){
564564
function chk_zero(){
565565
echo "### SnapRAID TOUCH [$(date)]"
566566
echo "Checking for zero sub-second files."
567-
TIMESTATUS=$($SNAPRAID_BIN -c $SNAPRAID_CONF status | grep 'You have [1-9][0-9]* files with zero sub-second timestamp\.' | sed 's/^You have/Found/g')
567+
TIMESTATUS=$($SNAPRAID_BIN -c $SNAPRAID_CONF status | grep -E 'You have [1-9][0-9]* files with( a)? zero sub-second timestamp\.' | sed 's/^You have/Found/g')
568568
if [ -n "$TIMESTATUS" ]; then
569569
echo "$TIMESTATUS"
570570
echo "Running TOUCH job to timestamp. [$(date)]"

0 commit comments

Comments
 (0)