Skip to content

Commit 6012aa3

Browse files
author
Oliver Cervera
authored
Merge pull request #96 from auanasgheps/dev
Push 3.3.1 to master
2 parents ecbaa73 + 03cbdbc commit 6012aa3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

snapraid-aio-script.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
######################
99
# SCRIPT VARIABLES #
1010
######################
11-
SNAPSCRIPTVERSION="3.3"
11+
SNAPSCRIPTVERSION="3.3.1"
1212

1313
# Read SnapRAID version
1414
SNAPRAIDVERSION="$(snapraid -V | sed -e 's/snapraid v\(.*\)by.*/\1/')"
@@ -74,7 +74,7 @@ function main(){
7474

7575

7676
# Initialize notification
77-
if [ "$HEALTHCHECKS" -eq 1 ] || [ "$TELEGRAM" -eq 1 ] || [ "$DISCORD" -eq 1 ]; then
77+
if [ "$HEALTHCHECKS" -eq 1 ] || [ "$TELEGRAM" -eq 1 ] || [ "$DISCORD" -eq 1 ] || [ "$CHECK_UPDATES" -eq 1 ]; then
7878
# Check for notification dependencies
7979
check_and_install curl
8080
check_and_install jq
@@ -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)]"

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.3
1+
3.3.1

0 commit comments

Comments
 (0)