Fixed broken toint function, causes backups to not run from cron
[matthijs/upstream/backupninja.git] / src / backupninja.in
index 68c7c430c06a1587f25af3f9f2218c9b30a1ac7f..249a748f9c15d2f0a07686268fca027f51310ac9 100755 (executable)
@@ -148,7 +148,7 @@ function tolower() {
 
 # simple to integer function
 function toint() {
-       echo "$1" | tr [:alpha:] -d 
+       echo "$1" | tr -d [:alpha:] 
 }
 
 #