grover66 / kidtimer

Script to manage computer usage by time and schedule.
18 stars 23 forks source link

Started giving error on sudo kidtimer line 362: [: -eq: unary operator expected #15

Closed hawstom closed 10 years ago

hawstom commented 10 years ago

kidtimer has been working great for me. I notice just now when I invoked sudo kidtimer that I got the error above

/usr/local/bin/kidtimer: line 362: [: -eq: unary operator expected

Is this going to keep it from working right? Do I need to do something?

Tom

grover66 commented 10 years ago

Please update ( sudo kidtimer update ) and see if that fixes the issue.

-Mike

hawstom commented 10 years ago

There was no evidence that the command sudo kidtimer update failed or succeeded. And it didn't make the error stop.

grover66 commented 10 years ago

if you run the following command; "sudo wc -l /usr/local/bin/kidtimer", is the resulting line say 452?

Mike

grover66 commented 10 years ago

The reason I ask is that line 362 is an echo statement. No variables or functions.

hawstom commented 10 years ago

Yes. It is 452. I don't know if we had to reinstall Ubuntu (for another reason) or what, but the error is no longer appearing.

grover66 commented 10 years ago

yeah!