Fixed broken toint function, causes backups to not run from cron
authormicah <micah@758a04ac-41e6-0310-8a23-8373a73cc35d>
Fri, 16 Dec 2005 16:15:13 +0000 (16:15 +0000)
committermicah <micah@758a04ac-41e6-0310-8a23-8373a73cc35d>
Fri, 16 Dec 2005 16:15:13 +0000 (16:15 +0000)
when told to run "everyday" (debian bug: #341881)

git-svn-id: http://code.autistici.org/svn/backupninja/trunk@258 758a04ac-41e6-0310-8a23-8373a73cc35d

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