Spot the shell bug.

Uncategorized

This is bugging me. I’m missing something obvious here, and I can’t see what.
I have this script that I use to sync the fedora rawhide tree locally. It works fine. But something odd happens with the tests for complete trees.

As you can see in this screenshot, sometimes the ‘incomplete’ message gets printed in green, even though the echo is prefixed with the escape codes for red.

lazyweb , wtf is going on here?

UPDATE: Duhh. typo on line 37. The ‘incomplete’ should say ‘complete’
(When trying to debug this, I replaced ‘complete’ and ‘incomplete’ with ‘red’ and ‘green’. *headdesk*)

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

1 Comment

1 Comment

  1. jon  •  Mar 30, 2010 @16:15

    Sometimes you have to pay your dues on the altar of humility before the bugs will be shallow to you.



  • huaglahglah huaglahglah