Add item to list correctly.
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 27 Aug 2008 17:15:13 +0000 (17:15 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 27 Aug 2008 17:15:13 +0000 (17:15 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1737 38d2e660-2303-0410-9eaa-f027e97ec537

test/get_source_list.sh

index ef6bd50ae57a625de8b62796ebe8fc943b5f887f..4365e2b39d31a2afa0f81bfd8b849be1f2e6a771 100755 (executable)
@@ -62,8 +62,8 @@ NOTEST="notest:"
 for src in $SRC_ALL ;
 do
        grep "$NOTEST\s*$CPU_TARGET" $src 2>&1 > /dev/null
-       if [ $? = 0 ] ; then
-               EXCLUDE_LIST+=$src
+       if [ $? -eq 0 ] ; then
+               EXCLUDE_LIST="$EXCLUDE_LIST $src"
        fi      
 done