Fix warning when non-nagios action is used
diff --git a/backupninja/files/duplicity_salt.sh b/backupninja/files/duplicity_salt.sh
index e27df44..3d4e62f 100644
--- a/backupninja/files/duplicity_salt.sh
+++ b/backupninja/files/duplicity_salt.sh
@@ -17,7 +17,6 @@
     esac
 done
 shift $((OPTIND-1))
-TOL=$[$2*3600]
 
 action_prepare() {
     trap action_cleanup INT TERM EXIT
@@ -40,6 +39,7 @@
 }
 
 nagios() {
+    TOL=$1
     EXITVAL=2
     read -ra dup_status <<< $(status)
 
@@ -94,7 +94,10 @@
 case $1 in
     restore) action_prepare && restore ;;
     status) action_prepare && status ;;
-    nagios) action_prepare && nagios ;;
+    nagios)
+        TOL=$[$2*3600]
+        action_prepare && nagios $TOL
+        ;;
     list-files) action_prepare && list_files ;;
     *) usage ;;
 esac