shellcheck, better automated upgrades
[distro-setup] / filesystem / usr / local / bin / mailtest-check
index 7fb1cbce051b6233ce93624ac1b02a661fecb65a..c48fae99b4e0a702540384be262c578a53a09d09 100755 (executable)
@@ -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