Fixed broken toint function, causes backups to not run from cron
authorMicah Anderson <micah@riseup.net>
Fri, 16 Dec 2005 16:15:13 +0000 (16:15 +0000)
committerMicah Anderson <micah@riseup.net>
Fri, 16 Dec 2005 16:15:13 +0000 (16:15 +0000)
when told to run "everyday" (debian bug: #341881)

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:] 
 }
 
 #