X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=filesystem%2Fusr%2Flocal%2Fbin%2Fmailtest-check;h=c48fae99b4e0a702540384be262c578a53a09d09;hp=7fb1cbce051b6233ce93624ac1b02a661fecb65a;hb=343a048be4b32d18540c6531048d2b9a006774ae;hpb=50e3ebaf4941651899a3b52b5245052c3f4ed725 diff --git a/filesystem/usr/local/bin/mailtest-check b/filesystem/usr/local/bin/mailtest-check index 7fb1cbc..c48fae9 100755 --- a/filesystem/usr/local/bin/mailtest-check +++ b/filesystem/usr/local/bin/mailtest-check @@ -13,7 +13,7 @@ shopt -s nullglob # we run this cronjob along with sending the test email every 10 # minutes, so give it 2 minutes to arrive, then if there is an email at # least 23 minutes old, the last 2 test emails have failed. -if [[ ! $@ && $- != *i* ]]; then +if [[ ! $1 && $- != *i* ]]; then sleep 120 fi @@ -38,4 +38,4 @@ else rm -f /nocow/user/mailtest-failure fi -find -type f -mtime +1 -delete +find . -type f -mtime +1 -delete