Tiny Core Linux

Tiny Core Base => TCB Bugs => Topic started by: maro on February 28, 2010, 05:15:05 PM

Title: Is this correct in /usr/bin/tce-setup?
Post by: maro on February 28, 2010, 05:15:05 PM
I was wondering if the tests in the following lines in 'usr/bin/tce-setup' (in TC 2.9rc5) are correct:

     93:  [ -n "$TCEDIR"/"$TARGETLIST" ] && for FILE in ....
    101:  [ -n "$TCEDIR"/"$TARGETLIST" ] && for FILE in ....

The '-n string' test will probably always be true, whilst I guess what is meant to be tested is with '-e file' the existance of the "onboot.lst" file. So, I believe it should be:

     93:  [ -e "$TCEDIR"/"$TARGETLIST" ] && for FILE in ....
    101:  [ -e "$TCEDIR"/"$TARGETLIST" ] && for FILE in ....
Title: Re: Is this correct in /usr/bin/tce-setup?
Post by: roberts on February 28, 2010, 05:29:30 PM
Good find. Thanks. Fixed for 2.9 final.